This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: gdb 5.3 problem in ARM simulator
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Hornung Peter <peter_hornung at siemens dot com>
- Cc: "'gdb-patches at sources dot redhat dot com'" <gdb-patches at sources dot redhat dot com>, Richard dot Earnshaw at arm dot com
- Date: Fri, 25 Apr 2003 15:57:17 +0100
- Subject: Re: gdb 5.3 problem in ARM simulator
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
I suspect that all of these problems stem from the fact that GDB is using
the wrong method for resetting the PC. Instead of setting state->Reg[15]
directly or using ARMul_SetReg() it should be using ARMul_SetR15() as the
RDI interface does. Then both your and Nick's previous change shouldn't
be needed.
However, I haven't tested any of this, it's just an observation I made
when looking over the source code one day.
R.