From 670aa98f98df20aebd704523716949ddd578c95e Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 7 Apr 2006 16:15:58 +0000 Subject: [PATCH] * remote.c (remote_wait): Convert warning to error before parsing corrupt packets. --- gdb/ChangeLog | 5 +++++ gdb/remote.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ab11981d707..f8a453b3679 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-04-07 Daniel Jacobowitz + + * remote.c (remote_wait): Convert warning to error before + parsing corrupt packets. + 2006-04-07 Andrew Stubbs * cli/cli-script.c (struct user_args): Add command field. diff --git a/gdb/remote.c b/gdb/remote.c index efff972fbc7..d60a6062557 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); -- 2.30.2