diff options
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index fd3552a..c990b1e 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -4431,7 +4431,7 @@ remote_insert_hw_breakpoint (CORE_ADDR addr, int len) addr = remote_address_masked (addr); p += hexnumstr (p, (ULONGEST) addr); - *p = '\0'; + sprintf (p, ",%x", len); putpkt (buf); getpkt (buf, PBUFSIZ, 0); @@ -4467,7 +4467,7 @@ remote_remove_hw_breakpoint (CORE_ADDR addr, int len) addr = remote_address_masked (addr); p += hexnumstr (p, (ULONGEST) addr); - *p = '\0'; + sprintf (p, ",%x", len); putpkt(buf); getpkt (buf, PBUFSIZ, 0); |