diff -Naur insight-7.4.50.orig/gdb/gdbtk/generic/gdbtk-bp.c insight-7.4.50.new/gdb/gdbtk/generic/gdbtk-bp.c
--- insight-7.4.50.orig/gdb/gdbtk/generic/gdbtk-bp.c 2012-03-20 15:20:24.000000000 +0100
+++ insight-7.4.50.new/gdb/gdbtk/generic/gdbtk-bp.c 2012-12-05 14:10:23.442162600 +0100
@@ -254,7 +254,7 @@
Tcl_SetListObj (result_ptr->obj_ptr, 0, NULL);
ALL_BREAKPOINTS (b)
{
- if (b->loc->line_number == line
+ if (b->loc && b->loc->line_number == line
&& !strcmp (b->loc->source_file, s->filename))
{
Tcl_ListObjAppendElement (NULL, result_ptr->obj_ptr,