public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* wrong PC for "set architecuture xxx" for gdbserver
@ 2015-02-01  8:36 fei ding
  2015-02-08  5:30 ` Doug Evans
  0 siblings, 1 reply; 2+ messages in thread
From: fei ding @ 2015-02-01  8:36 UTC (permalink / raw)
  To: gdb

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: wrong PC for "set architecuture xxx" for gdbserver
  2015-02-01  8:36 wrong PC for "set architecuture xxx" for gdbserver fei ding
@ 2015-02-08  5:30 ` Doug Evans
  0 siblings, 0 replies; 2+ messages in thread
From: Doug Evans @ 2015-02-08  5:30 UTC (permalink / raw)
  To: fei ding; +Cc: gdb

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 ...

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-08  5:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-01  8:36 wrong PC for "set architecuture xxx" for gdbserver fei ding
2015-02-08  5:30 ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).