keiths / rpms / gdb

Forked from rpms/gdb 4 days ago
Clone
10f824b
A part of:
10f824b
  http://sourceware.org/ml/gdb-cvs/2008-06/msg00160.html
10f824b
10f824b
It was crashing the RH testcase `gdb.threads/watchthreads2.exp'.
10f824b
10f824b
diff -up -u -X /root/jkratoch/.diffi.list -rup gdb-6.8/gdb/breakpoint.c gdb-6.8-patched/gdb/breakpoint.c
10f824b
--- gdb-6.8/gdb/breakpoint.c	2008-08-28 11:56:56.000000000 +0200
10f824b
+++ gdb-6.8-patched/gdb/breakpoint.c	2008-08-28 11:53:43.000000000 +0200
10f824b
@@ -3173,6 +3173,9 @@ bpstat_what (bpstat bs)
10f824b
 	/* I suspect this can happen if it was a momentary breakpoint
10f824b
 	   which has since been deleted.  */
10f824b
 	continue;
10f824b
+      if (bs->breakpoint_at->owner == NULL)
10f824b
+	bs_class = bp_nostop;
10f824b
+      else
10f824b
       switch (bs->breakpoint_at->owner->type)
10f824b
 	{
10f824b
 	case bp_none: