mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
Frame static link: Handle null pointer.
2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com> gdb/Changelog: * findvar.c (follow_static_link): Check for valid pointer.
This commit is contained in:
@ -435,6 +435,7 @@ follow_static_link (struct frame_info *frame,
|
||||
/* If we don't know how to compute FRAME's base address, don't give up:
|
||||
maybe the frame we are looking for is upper in the stace frame. */
|
||||
if (framefunc != NULL
|
||||
&& SYMBOL_BLOCK_OPS (framefunc) != NULL
|
||||
&& SYMBOL_BLOCK_OPS (framefunc)->get_frame_base != NULL
|
||||
&& (SYMBOL_BLOCK_OPS (framefunc)->get_frame_base (framefunc, frame)
|
||||
== upper_frame_base))
|
||||
|
Reference in New Issue
Block a user