2010-06-07 Michael Snyder * breakpoint.c (remove_breakpoints_pid): Check for null. Index: breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/breakpoint.c,v retrieving revision 1.488 diff -u -p -r1.488 breakpoint.c --- breakpoint.c 7 Jun 2010 13:38:25 -0000 1.488 +++ breakpoint.c 7 Jun 2010 18:05:28 -0000 @@ -2041,6 +2041,9 @@ remove_breakpoints_pid (int pid) int val; struct inferior *inf = find_inferior_pid (pid); + if (inf == NULL) /* bail out */ + return 0; + ALL_BP_LOCATIONS (b, b_tmp) { if (b->pspace != inf->pspace)