Message ID | alpine.DEB.1.10.1412111524360.19155@tp.orcam.me.uk |
---|---|
State | New |
Headers | show |
Index: qemu-git-trunk/gdbstub.c =================================================================== --- qemu-git-trunk.orig/gdbstub.c 2014-12-10 20:45:59.098929761 +0000 +++ qemu-git-trunk/gdbstub.c 2014-12-10 20:46:00.597549995 +0000 @@ -1108,7 +1108,8 @@ static int gdb_handle_packet(GDBState *s /* A response from a previous query. We only send one query so it must be _mdi_syscall. */ if (*(p+7) != ':') { - addr = strtoull(p+7, (char **)&p, 16); + addr = target_address(s->c_cpu, + strtoull(p+7, (char **)&p, 16)); hextomem(mem_buf, p+1, strlen(MDI_SYSCALL_SYMBOL)*2); if (memcmp(mem_buf, MDI_SYSCALL_SYMBOL,
Signed-off-by: Maciej W. Rozycki <macro@codesourcery.com> --- This is only required as a separate patch because of the dependency on "https://patchwork.ozlabs.org/patch/419910/" -- if the latter patch is accepted before this series, then this part (4/4) needs to be folded into 3/4, otherwise this part (4/4) has to be folded into "https://patchwork.ozlabs.org/patch/419910/". Maciej qemu-mips-semihosting-regsize.diff