diff options
author | Peter Crosthwaite <crosthwaitepeter@gmail.com> | 2015-06-23 19:31:16 -0700 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-07-09 15:20:40 +0200 |
commit | f7ec7f7b269813603b1d64bb9833f9e711f0115c (patch) | |
tree | 387dd8f6d74dbc0c571ddb232e432a5d822e5164 /gdbstub.c | |
parent | bbd77c180d7ff1b04a7661bb878939b2e1d23798 (diff) | |
download | qemu-f7ec7f7b269813603b1d64bb9833f9e711f0115c.zip qemu-f7ec7f7b269813603b1d64bb9833f9e711f0115c.tar.gz qemu-f7ec7f7b269813603b1d64bb9833f9e711f0115c.tar.bz2 |
gdbstub: Change gdbserver_fork() to accept cpu instead of env
All callsites to this function navigate the cpu->env_ptr only for the
function to take the env ptr back to the original cpu ptr. Change the
function to just pass in the CPU pointer instead. Removes a core code
usage of ENV_GET_CPU() (in gdbstub.c).
Cc: Riku Voipio <riku.voipio@iki.fi>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'gdbstub.c')
-rw-r--r-- | gdbstub.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1629,9 +1629,8 @@ int gdbserver_start(int port) } /* Disable gdb stub for child processes. */ -void gdbserver_fork(CPUArchState *env) +void gdbserver_fork(CPUState *cpu) { - CPUState *cpu = ENV_GET_CPU(env); GDBState *s = gdbserver_state; if (gdbserver_fd < 0 || s->fd < 0) { |