diff options
author | Tom Tromey <tromey@redhat.com> | 2012-01-25 15:57:04 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-01-25 15:57:04 +0000 |
commit | 5d26827631bff1bd94ab13786fc4f05ab8bfe9e3 (patch) | |
tree | ae35e7b0691bfc3901d6a4699d131b3d74ad7447 /gdb/breakpoint.c | |
parent | c2c7840a42aaab8354bb1997d141149d30316603 (diff) | |
download | gdb-5d26827631bff1bd94ab13786fc4f05ab8bfe9e3.zip gdb-5d26827631bff1bd94ab13786fc4f05ab8bfe9e3.tar.gz gdb-5d26827631bff1bd94ab13786fc4f05ab8bfe9e3.tar.bz2 |
* breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
dereferencing.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0da099b..ec7f348 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; |