630-debian_24.tracepoint-segv.patch 560 B

123456789101112131415
  1. Trivial. Still need to submit this.
  2. Index: gdb-6.1/gdb/tracepoint.c
  3. ===================================================================
  4. --- gdb-6.1.orig/gdb/tracepoint.c 2004-04-05 13:26:43.000000000 -0400
  5. +++ gdb-6.1/gdb/tracepoint.c 2004-04-05 13:26:45.000000000 -0400
  6. @@ -853,6 +853,8 @@ read_actions (struct tracepoint *t)
  7. else
  8. line = gdb_readline (0);
  9. + if (line == NULL || *line == EOF)
  10. + break;
  11. linetype = validate_actionline (&line, t);
  12. if (linetype == BADLINE)
  13. continue; /* already warned -- collect another line */