aboutsummaryrefslogtreecommitdiff
path: root/gdbstub.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-06-27 17:45:01 +0200
committerAndreas Färber <afaerber@suse.de>2013-07-23 02:41:32 +0200
commit9e0c5422cfbed78990e2edc9d68928647829f5ac (patch)
treeb7989d64f42d37959af78795f2a0f0ed63abeb36 /gdbstub.c
parent6227881415e0e0117d56aef90cf6e72f24187ec1 (diff)
downloadqemu-arm-9e0c5422cfbed78990e2edc9d68928647829f5ac.tar.gz
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>
Diffstat (limited to 'gdbstub.c')
-rw-r--r--gdbstub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbstub.c b/gdbstub.c
index b5e6778c80..bb44ef2f18 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -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') {