aboutsummaryrefslogtreecommitdiff
path: root/gprof/corefile.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2026-02-03 13:03:45 -0700
committerTom Tromey <tromey@adacore.com>2026-02-04 11:16:06 -0700
commit4e76b375191934ecf41d27b7d887ce0aa880440c (patch)
tree99f85ae159b0286715fc0c78d98673d496ee9115 /gprof/corefile.h
parent2eba2726b3f57be086bca44c5694b9faf9396cef (diff)
downloadfsf-binutils-gdb-master.zip
fsf-binutils-gdb-master.tar.gz
fsf-binutils-gdb-master.tar.bz2
Add null check for character type nameHEADmaster
The internal AdaCore test suite found that wchar_printer::get_default_encoding checks the name of a type without first seeing if the name is null: else if (streq (chtype->name (), "wchar_t")) Mysteriously, though, this only seems to happen for certain targets and perhaps only under certain conditions (I couldn't reproduce it msyelf). I felt that the fix is fairly obvious and that this isn't really worth writing a test for. However I can write one using the DWARF assembler if someone feels it is worthwhile.
Diffstat (limited to 'gprof/corefile.h')
0 files changed, 0 insertions, 0 deletions