mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
gdbstub: Change syscall callback argument to CPUState
Callback implementations were specific to arm and m68k, so can easily cast to ARMCPU and M68kCPU respectively. Prepares for changing GDBState::c_cpu to CPUState. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
6227881415
commit
9e0c5422cf
4 changed files with 12 additions and 5 deletions
|
@ -2205,7 +2205,7 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf)
|
|||
p++;
|
||||
type = *p;
|
||||
if (s->current_syscall_cb) {
|
||||
s->current_syscall_cb(s->c_cpu, ret, err);
|
||||
s->current_syscall_cb(ENV_GET_CPU(s->c_cpu), ret, err);
|
||||
s->current_syscall_cb = NULL;
|
||||
}
|
||||
if (type == 'C') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue