]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/main.c
gdbstub: Change gdbserver_fork() to accept cpu instead of env
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Wed, 24 Jun 2015 02:31:16 +0000 (19:31 -0700)
committerAndreas Färber <afaerber@suse.de>
Thu, 9 Jul 2015 13:20:40 +0000 (15:20 +0200)
commitf7ec7f7b269813603b1d64bb9833f9e711f0115c
tree387dd8f6d74dbc0c571ddb232e432a5d822e5164
parentbbd77c180d7ff1b04a7661bb878939b2e1d23798
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>
bsd-user/main.c
gdbstub.c
include/exec/gdbstub.h
linux-user/main.c