This is the mail archive of the gdb@sourceware.org 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: wrong PC for "set architecuture xxx" for gdbserver


On Sun, Feb 1, 2015 at 12:36 AM, fei ding <fdingiit@gmail.com> wrote:
> Hi:
>
> I use "set architecuture xxx" command to change arch for my gdbserver,
> and I've traced that, gdb will send a g_packet to gdbserver to fetch
> registers' values, and then do some correct-pc-things.
>
> But, if I input the "set arch xxx" command right after the "continue"
> command, the value of EIP will always be wrong, it points to the
> instruction after the correct one. Why?

Hi.
I wouldn't expect one to be able to change the arch after the inferior
has started.

It's hard to provide much help in the absence of an example session
showing the problem.
One can only guess ...


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