Commit aa6290b7e56270c42bce32cd57ff18de8608d4f7

Authored by pbrook
1 parent 8979596d

Fix format specified for watchpoint address.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2667 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
gdbstub.c
@@ -929,7 +929,8 @@ static void gdb_vm_stopped(void *opaque, int reason) @@ -929,7 +929,8 @@ static void gdb_vm_stopped(void *opaque, int reason)
929 929
930 if (reason == EXCP_DEBUG) { 930 if (reason == EXCP_DEBUG) {
931 if (s->env->watchpoint_hit) { 931 if (s->env->watchpoint_hit) {
932 - snprintf(buf, sizeof(buf), "T%02xwatch:%x;", SIGTRAP, 932 + snprintf(buf, sizeof(buf), "T%02xwatch:" TARGET_FMT_lx ";",
  933 + SIGTRAP,
933 s->env->watchpoint[s->env->watchpoint_hit - 1].vaddr); 934 s->env->watchpoint[s->env->watchpoint_hit - 1].vaddr);
934 put_packet(s, buf); 935 put_packet(s, buf);
935 s->env->watchpoint_hit = 0; 936 s->env->watchpoint_hit = 0;