This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: SEGV on display /i $pc with i386 target
- From: Andrew Cagney <ac131313 at ges dot redhat dot com>
- To: Christopher Faylor <cgf at redhat dot com>
- Cc: Elena Zannoni <ezannoni at redhat dot com>, gdb at sources dot redhat dot com
- Date: Mon, 02 Sep 2002 16:26:49 -0400
- Subject: Re: SEGV on display /i $pc with i386 target
- References: <20020829055103.GA26149@redhat.com> <86k7m9p9v9.fsf@elgar.kettenis.dyndns.org> <20020830010539.GA28337@redhat.com> <15726.59407.855138.718609@localhost.redhat.com> <20020830035319.GA30200@redhat.com>
On Thu, Aug 29, 2002 at 11:35:43PM -0400, Elena Zannoni wrote:
Seems like target_map_name_to_register is the problem?
Yes. It will be related to that. When updating the code, I searched
for something that relied on the reverse lookup (regnum -> name) but
couldn't find anything (at least nothing that affected the testsuite).
It seems to be getting the correct correspondence between (in this
case) $eip and $pc. You can see this by typing "print /x $pc"
"print /x $eip". Both translate to the same thing.
It's only when the name itself needs to be displayed that it seems
to fall down.
GDB is mapping:
"$pc" -> NUM_REGS+NUM_PSEUDO_REGS+<builtin-pc>
and then failing:
... -> "$pc"
because the mechanism isn't there.
I'll figure out a patch.
Andrew