This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Cause of the ?? in backtrace
Joel Brobecker <brobecker@adacore.com> writes:
>> In order to ensure the library has debug info built into it, do you
>> just need to build the library with the -g option specified during
>> compilation? Or is it more involved?
>
> Building it with -g should be sufficient. However, even if the library
> was not built with debug info, we should still have the symbol table
> to work with, right?
Unless it is stripped. The dynamic symbol table may not be enough.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."