Re: How did KDbg find out the source corresponding to my executable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shriramana Sharma wrote:

> Just a few minutes ago, I tried KDbg, the KDE front-end to gdb. (The 
> change in position of g between the two names amuses me for some reason.)
> 
> When I selected an executable which was located at a location different 
> from its source, KDbg automatically found out the location of the 
> source-file and opened it for setting breakpoints etc.
> 
> Is the path to the source embedded in every executable?

It's part of the debug info, so it will be present in an executable
which was built with debug info and hasn't subsequently been stripped.

> Upon examining 
> the executable by nm for symbols I did not find the source path, but 
> maybe that is not a symbol.

It's not a symbol.

Run "strings -a ..." on the file.

-- 
Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux