Commit fe834d041df9a14bcd965a3d2a2dc455c27b410e
1 parent
0458df24
Proper target format for qOffsets.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2934 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
5 additions
and
2 deletions
gdbstub.c
... | ... | @@ -908,8 +908,11 @@ static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf) |
908 | 908 | if (strncmp(p, "Offsets", 7) == 0) { |
909 | 909 | TaskState *ts = env->opaque; |
910 | 910 | |
911 | - sprintf(buf, "Text=%x;Data=%x;Bss=%x", ts->info->code_offset, | |
912 | - ts->info->data_offset, ts->info->data_offset); | |
911 | + sprintf(buf, | |
912 | + "Text=" TARGET_FMT_lx ";Data=" TARGET_FMT_lx ";Bss=" TARGET_FMT_lx, | |
913 | + ts->info->code_offset, | |
914 | + ts->info->data_offset, | |
915 | + ts->info->data_offset); | |
913 | 916 | put_packet(s, buf); |
914 | 917 | break; |
915 | 918 | } | ... | ... |