qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 4/4] gdbstub: Fix address size in `qSymbol' handling


From: Maciej W. Rozycki
Subject: [Qemu-devel] [PATCH 4/4] gdbstub: Fix address size in `qSymbol' handling
Date: Thu, 11 Dec 2014 15:51:15 +0000
User-agent: Alpine 1.10 (DEB 962 2008-03-14)

Signed-off-by: Maciej W. Rozycki <address@hidden>
---
 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
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,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]