diff options
Diffstat (limited to 'gdbstub.c')
-rw-r--r-- | gdbstub.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; } |