mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
gdbstub: Set gdb_set_stop_cpu() argument to CPUState
Use CPUState::env_ptr for now. Prepares for changing cpu_handle_guest_debug() argument to CPUState. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
@@ -2506,8 +2506,10 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf)
|
||||
return RS_IDLE;
|
||||
}
|
||||
|
||||
void gdb_set_stop_cpu(CPUArchState *env)
|
||||
void gdb_set_stop_cpu(CPUState *cpu)
|
||||
{
|
||||
CPUArchState *env = cpu->env_ptr;
|
||||
|
||||
gdbserver_state->c_cpu = env;
|
||||
gdbserver_state->g_cpu = env;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user