This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug corefiles/15974] Unsupported notification packets are causing errors (last of the nc_list is picked).


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]