aboutsummaryrefslogtreecommitdiff
path: root/gdbstub.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-03 17:08:32 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-03 17:08:32 +0000
commitfe834d041df9a14bcd965a3d2a2dc455c27b410e (patch)
treef86f0f1d6dfc33927085d561bde307f8a12a4b5d /gdbstub.c
parent0458df244461788b4502698ac690824c6ed1381f (diff)
Proper target format for qOffsets.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2934 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'gdbstub.c')
-rw-r--r--gdbstub.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdbstub.c b/gdbstub.c
index d346ad94f3..2ec2f33f8d 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -908,8 +908,11 @@ static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf)
if (strncmp(p, "Offsets", 7) == 0) {
TaskState *ts = env->opaque;
- sprintf(buf, "Text=%x;Data=%x;Bss=%x", ts->info->code_offset,
- ts->info->data_offset, ts->info->data_offset);
+ sprintf(buf,
+ "Text=" TARGET_FMT_lx ";Data=" TARGET_FMT_lx ";Bss=" TARGET_FMT_lx,
+ ts->info->code_offset,
+ ts->info->data_offset,
+ ts->info->data_offset);
put_packet(s, buf);
break;
}