aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-internal.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-09-20 14:02:53 -0600
committerTom Tromey <tom@tromey.com>2025-09-20 14:08:19 -0600
commit8bbc7f91fc5c59281b4fa790185d7562b20a5e18 (patch)
treefbfc4d3d57c1ad50e091d0317ef25ddd29c79c4e /gdb/python/python-internal.h
parent57389cbcb24efb940a466e85e0cabd897ff3e47e (diff)
downloadbinutils-8bbc7f91fc5c59281b4fa790185d7562b20a5e18.zip
binutils-8bbc7f91fc5c59281b4fa790185d7562b20a5e18.tar.gz
binutils-8bbc7f91fc5c59281b4fa790185d7562b20a5e18.tar.bz2
Fix test in anonymous_struct_prefix
I noticed a bad test in dwarf2/read.c:anonymous_struct_prefix: attr = dw2_linkage_name_attr (die, cu); const char *attr_name = attr->as_string (); if (attr == NULL || attr_name == NULL) return NULL; Here, if attr==NULL, this will crash before the test can be executed. This patch fixes the problem by hoisting the test. I'm checking this in as obvious.
Diffstat (limited to 'gdb/python/python-internal.h')
0 files changed, 0 insertions, 0 deletions