aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-04-07 16:15:58 +0000
committerDaniel Jacobowitz <drow@false.org>2006-04-07 16:15:58 +0000
commit670aa98f98df20aebd704523716949ddd578c95e (patch)
tree4d33af8877e3df6a24222c6e2e9afadc0b5eadd1 /gdb/remote.c
parentd727e8c26ec6a7e347f36fa2232423325e8d7ed1 (diff)
downloadgdb-670aa98f98df20aebd704523716949ddd578c95e.zip
gdb-670aa98f98df20aebd704523716949ddd578c95e.tar.gz
gdb-670aa98f98df20aebd704523716949ddd578c95e.tar.bz2
* remote.c (remote_wait): Convert warning to error before
parsing corrupt packets.
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 efff972..d60a606 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2741,9 +2741,9 @@ remote_wait (ptid_t ptid, struct target_waitstatus *status)
{
p1 = strchr (p, ':');
if (p1 == NULL)
- warning (_("Malformed packet(a) (missing colon): %s\n\
+ error (_("Malformed packet(a) (missing colon): %s\n\
Packet: '%s'\n"),
- p, buf);
+ p, buf);
if (strncmp (p, "thread", p1 - p) == 0)
{
p_temp = unpack_varlen_hex (++p1, &thread_num);