Re: wrong PC for "set architecuture xxx" for gdbserver
Doug Evans <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAP9bCMSktekyTEZWjfBLzHs=9ZT4fNBB2mt2jxogOoxHEQbK3Q@mail.gmail.com> |
On Sun, Feb 1, 2015 at 12:36 AM, fei ding <[email protected]> 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 ...