GNU Binutils with patches for OS216
リビジョン | 2091da296fd563f62d856dcb5a049a63484ed65e (tree) |
---|---|
日時 | 2016-06-07 20:36:05 |
作者 | Bernhard Heckel <bernhard.heckel@inte...> |
コミッター | Bernhard Heckel |
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.
@@ -1,3 +1,7 @@ | ||
1 | +2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com> | |
2 | + | |
3 | + * findvar.c (follow_static_link): Check for valid pointer. | |
4 | + | |
1 | 5 | 2016-06-06 Simon Marchi <simon.marchi@ericsson.com> |
2 | 6 | |
3 | 7 | * NEWS: Mention the new fields in =record-started. |
@@ -435,6 +435,7 @@ follow_static_link (struct frame_info *frame, | ||
435 | 435 | /* If we don't know how to compute FRAME's base address, don't give up: |
436 | 436 | maybe the frame we are looking for is upper in the stace frame. */ |
437 | 437 | if (framefunc != NULL |
438 | + && SYMBOL_BLOCK_OPS (framefunc) != NULL | |
438 | 439 | && SYMBOL_BLOCK_OPS (framefunc)->get_frame_base != NULL |
439 | 440 | && (SYMBOL_BLOCK_OPS (framefunc)->get_frame_base (framefunc, frame) |
440 | 441 | == upper_frame_base)) |