This is the mail archive of the gdb@sources.redhat.com 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]

Re: SEGV on display /i $pc with i386 target


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



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