From: Tom Tromey Date: Wed, 25 Jan 2012 15:57:04 +0000 (+0000) Subject: * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d26827631bff1bd94ab13786fc4f05ab8bfe9e3;p=binutils-gdb.git * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before dereferencing. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b03445067f0..15a7b6af2b9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-01-25 Tom Tromey + + * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before + dereferencing. + 2012-01-24 Tom Tromey PR symtab/12406: diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0da099be31d..ec7f348d26d 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -4303,7 +4303,7 @@ bpstat_stop_status (struct address_space *aspace, "catch unload". */ for (bs = bs_head; bs != NULL; bs = bs->next) { - if (bs->breakpoint_at->type == bp_shlib_event) + if (bs->breakpoint_at && bs->breakpoint_at->type == bp_shlib_event) { handle_solib_event (); break;