diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-10-26 03:43:48 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-10-26 03:43:48 +0000 |
commit | e514a9d64262fcceccd85180b20b7adc3c4a5eed (patch) | |
tree | 15fda31e24d9ce88756ba5e4d3c6a54711e8648e /gdb/remote.c | |
parent | 4c1102fd195c4ec6aaff893d5d4df4fc5faa0fc1 (diff) | |
download | gdb-e514a9d64262fcceccd85180b20b7adc3c4a5eed.zip gdb-e514a9d64262fcceccd85180b20b7adc3c4a5eed.tar.gz gdb-e514a9d64262fcceccd85180b20b7adc3c4a5eed.tar.bz2 |
import gdb-1999-10-25 snapshot
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 24d382e..cd4eda0 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3977,7 +3977,8 @@ remote_insert_breakpoint (addr, contents_cache) if ((remote_protocol_Z.support == PACKET_ENABLE) || (remote_protocol_Z.support == PACKET_SUPPORT_UNKNOWN)) { - char buf[PBUFSIZ], *p = buf; + char *buf = alloca (PBUFSIZ); + char *p = buf; addr = remote_address_masked (addr); *(p++) = 'Z'; @@ -4040,7 +4041,8 @@ remote_remove_breakpoint (addr, contents_cache) if ((remote_protocol_Z.support == PACKET_ENABLE) || (remote_protocol_Z.support == PACKET_SUPPORT_UNKNOWN)) { - char buf[PBUFSIZ], *p = buf; + char *buf = alloca (PBUFSIZ); + char *p = buf; *(p++) = 'z'; *(p++) = '0'; @@ -4071,7 +4073,8 @@ remote_insert_watchpoint (addr, len, type) int len; int type; { - char buf[PBUFSIZ], *p; + char *buf = alloca (PBUFSIZ); + char *p; if (remote_protocol_Z.support == PACKET_DISABLE) error ("Can't set hardware watchpoints without the 'Z' packet\n"); @@ -4097,7 +4100,8 @@ remote_remove_watchpoint (addr, len, type) int len; int type; { - char buf[PBUFSIZ], *p; + char *buf = alloca (PBUFSIZ); + char *p; sprintf (buf, "z%x,", type + 2 ); p = strchr (buf, '\0'); @@ -4118,7 +4122,8 @@ remote_insert_hw_breakpoint (addr, len) CORE_ADDR addr; int len; { - char buf[PBUFSIZ], *p = buf; + char *buf = alloca (PBUFSIZ); + char *p = buf; if (remote_protocol_Z.support == PACKET_DISABLE) error ("Can't set hardware breakpoints without the 'Z' packet\n"); @@ -4145,7 +4150,8 @@ remote_remove_hw_breakpoint (addr, len) CORE_ADDR addr; int len; { - char buf[PBUFSIZ], *p = buf; + char *buf = alloca (PBUFSIZ); + char *p = buf; *(p++) = 'z'; *(p++) = '1'; @@ -4239,6 +4245,11 @@ crc32 (buf, len, crc) Useful for verifying the image on the target against the exec file. Depends on the target understanding the new "qCRC:" request. */ +/* FIXME: cagney/1999-10-26: This command should be broken down into a + target method (target verify memory) and generic version of the + actual command. This will allow other high-level code (especially + generic_load()) to make use of this target functionality. */ + static void compare_sections_command (args, from_tty) char *args; |