patches/gdb/6.3/630-debian_24.tracepoint-segv.patch
changeset 96 aa1a9fbd6eb8
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gdb/6.3/630-debian_24.tracepoint-segv.patch	Thu May 17 16:22:51 2007 +0000
     1.3 @@ -0,0 +1,15 @@
     1.4 +Trivial.  Still need to submit this.
     1.5 +
     1.6 +Index: gdb-6.1/gdb/tracepoint.c
     1.7 +===================================================================
     1.8 +--- gdb-6.1.orig/gdb/tracepoint.c	2004-04-05 13:26:43.000000000 -0400
     1.9 ++++ gdb-6.1/gdb/tracepoint.c	2004-04-05 13:26:45.000000000 -0400
    1.10 +@@ -853,6 +853,8 @@ read_actions (struct tracepoint *t)
    1.11 +       else
    1.12 + 	line = gdb_readline (0);
    1.13 + 
    1.14 ++      if (line == NULL || *line == EOF)
    1.15 ++	break;
    1.16 +       linetype = validate_actionline (&line, t);
    1.17 +       if (linetype == BADLINE)
    1.18 + 	continue;		/* already warned -- collect another line */