aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-01-18 15:29:11 +0000
committerAndrew Cagney <cagney@redhat.com>2001-01-18 15:29:11 +0000
commitad6525fcf5c379690dcec802bee9f00cf2f2107b (patch)
treec12d917a994749df01a46873d641956a21350deb /gdb/remote.c
parent81c425d115c748a7821724aed41fdbbc1766ef0a (diff)
downloadgdb-ad6525fcf5c379690dcec802bee9f00cf2f2107b.zip
gdb-ad6525fcf5c379690dcec802bee9f00cf2f2107b.tar.gz
gdb-ad6525fcf5c379690dcec802bee9f00cf2f2107b.tar.bz2
From Mark Salter, fix hw-breakpoint packet format.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
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);