finally move buildroot-ng to trunk
[openwrt/staging/chunkeey.git] / toolchain / gdb / patches / 630-debian_24.tracepoint-segv.patch
1 Trivial. Still need to submit this.
2
3 Index: gdb-6.1/gdb/tracepoint.c
4 ===================================================================
5 --- gdb-6.1.orig/gdb/tracepoint.c 2004-04-05 13:26:43.000000000 -0400
6 +++ gdb-6.1/gdb/tracepoint.c 2004-04-05 13:26:45.000000000 -0400
7 @@ -853,6 +853,8 @@ read_actions (struct tracepoint *t)
8 else
9 line = gdb_readline (0);
10
11 + if (line == NULL || *line == EOF)
12 + break;
13 linetype = validate_actionline (&line, t);
14 if (linetype == BADLINE)
15 continue; /* already warned -- collect another line */