Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7003055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:00:42+00:00 2026-05-27T21:00:42+00:00

When you debug C/C++ code in gdb, you can for example use list command

  • 0

When you debug C/C++ code in gdb, you can for example use list command to see source file you are debugging. But if you introduce assembly function(s) and try to list source, gdb does not see it. “Info sources” also sees only C files.

I know I can disassemble the code, but I’d like to see source with comments and so on.
I have checked the object file corresponding to assembly source and the name of source file isn’t even recorded there (it is for C files).

Is this behavior by design? Am I missing some flags?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:00:42+00:00Added an answer on May 27, 2026 at 9:00 pm

    Just as compilers require a flag to have debugging info produced, so do assemblers. Not knowing what assembler you are using, I couldn’t say just what flag(s) you’d need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

sometimes i use debug code to alert something in javascript (for example, matching something
I'm trying to debug code in Emacs but when I try either M-x gdb
Can anyone guide on how to debug a JNI code on Linux using GDB
How do I debug assembly code? I'm on Linux and have gdb handy. I
I am trying to debug code using gdb, but when I try to watch
Currently attempting to debug with KDbg / gdb the source code for Towers of
When I debug code below, I see that span is changed by mapkit from
My debugger keep jumping into debugging the IL instead of jumping to debug code
I'm trying to debug some STL based C++ code in gdb. The code has
I can set a breakpoint in main and debug the code with the correct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.