From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 855 invoked by alias); 24 Sep 2013 10:12:29 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 812 invoked by uid 48); 24 Sep 2013 10:12:28 -0000 From: "qiyao at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug corefiles/15974] Unsupported notification packets are causing errors (last of the nc_list is picked). Date: Tue, 24 Sep 2013 10:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: corefiles X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: qiyao at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q3/txt/msg00393.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15974 Yao Qi changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |qiyao at gcc dot gnu.org --- Comment #2 from Yao Qi --- 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.