aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2023-12-08 19:06:14 +0100
committerHannes Domani <ssbssa@yahoo.de>2023-12-08 19:07:50 +0100
commit576745e26c0ec76a53ba45b20af464628a50b3e4 (patch)
tree61ba84e9c70d2eb29d59bf23555fbd4d54d71a9a /binutils
parentcff71358132db440b82747707b3c7c99efca6670 (diff)
downloadgdb-576745e26c0ec76a53ba45b20af464628a50b3e4.zip
gdb-576745e26c0ec76a53ba45b20af464628a50b3e4.tar.gz
gdb-576745e26c0ec76a53ba45b20af464628a50b3e4.tar.bz2
Fix printing of global variable stubs if no inferior is running
Since 3c45e9f915ae4aeab7312d6fc55a947859057572 gdb crashes when trying to print a global variable stub without a running inferior, because of a missing nullptr-check (the block_scope function took care of that check before it was converted to a method). With this check it works again: ``` (gdb) print s $1 = <incomplete type> ``` Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31128 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions