This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug corefiles/15974] Unsupported notification packets are causing errors (last of the nc_list is picked).
- From: "qiyao at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 24 Sep 2013 10:12:27 +0000
- Subject: [Bug corefiles/15974] Unsupported notification packets are causing errors (last of the nc_list is picked).
- Auto-submitted: auto-generated
- References: <bug-15974-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15974
Yao Qi <qiyao at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |qiyao at gcc dot gnu.org
--- Comment #2 from Yao Qi <qiyao at gcc dot gnu.org> ---
Gerard,
your patch looks right to me. I noticed this problem when I wrote other async
notification patches, and I've had a patch to fix it. I am a little
side-tracked, sorry.
Either you can submit your patch to gdb-patches@sourceware.org or I can submit
mine if it fixes your problem.
gdb:
* remote-notif.c (handle_notification):
---
gdb/remote-notif.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c
index 0f73a52..c4bfd8d 100644
--- a/gdb/remote-notif.c
+++ b/gdb/remote-notif.c
@@ -161,6 +161,7 @@ handle_notification (char *buf)
if (strncmp (buf, nc->name, strlen (nc->name)) == 0
&& buf[strlen (nc->name)] == ':')
break;
+ nc = NULL;
}
/* We ignore notifications we don't recognize, for compatibility
--
1.7.7.6
--
You are receiving this mail because:
You are on the CC list for the bug.