summaryrefslogtreecommitdiffstats
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index a9550b41e6..0348bf4247 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -137,6 +137,7 @@ struct symbol *
find_pc_sect_function (CORE_ADDR pc, struct obj_section *section)
{
struct block *b = block_for_pc_sect (pc, section);
+
if (b == 0)
return 0;
return block_linkage_function (b);
OpenPOWER on IntegriCloud