* getting lookup_symbol to find aliases
@ 2002-11-19 17:58 Nick Kelsey
0 siblings, 0 replies; only message in thread
From: Nick Kelsey @ 2002-11-19 17:58 UTC (permalink / raw)
To: gdb
Hi all,
I am working on the ip2k gdb port (should be released before the end of the
year) and I have come across a problem....
When printing the stack call chain gdb normally stops at main() (which is
desirable).
The main symbol is looked up in blockframe.c:
mainsym = lookup_symbol (main_name (), NULL, VAR_NAMESPACE, NULL, NULL);
This works fine when main is a real function but it fails when main is an
alias (returns NULL).
Upon further investigation, lookup symbol doesn't seam to understand aliases
which explains quite a few problems as we tend to use aliases extensivly.
A nm dump of the elf file returns:
0201699a W _main
0201699a T _system_main
Also as an aside, if gdb can't find main() then it will try to do the
symbolic lookup multiple times every time you dump the stack chain. I can do
a patch for that as well if it could be conceivable that people have
projects that don't have a function called main().
I would like to do a sanity check before I start hacking systab too much.
Nick
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-20 1:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-19 17:58 getting lookup_symbol to find aliases Nick Kelsey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox