This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/21419] Unable to list program after loading symbolic table


https://sourceware.org/bugzilla/show_bug.cgi?id=21419

--- Comment #7 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
(In reply to vishwanath from comment #6)
> No , Even i am guessing now how can -g alone can help to get whole source
> code.
> 
> atleast break to function name will work ?

If GDB doesn't have access to the source code, it cannot list the program.  You
can verify that by compiling a simple program on your machine, and then
moving/removing the source code and trying to use the 'list' command inside
GDB.

As for break, yes, "break <name>" should work without access to the source
code.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]