wrong PC for "set architecuture xxx" for gdbserver

fei ding <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAGmPkfKq0w3WJvod=h4EfUcMRhgdEwnO+VjbZ3d+tmid6X5=jw@mail.gmail.com>
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?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.