aboutsummaryrefslogtreecommitdiff
path: root/cpu/mep-sample-ucidsp.cpu
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-02-13 11:47:38 -0700
committerTom Tromey <tromey@adacore.com>2024-03-11 14:33:40 -0600
commit3a3f1548fa383791f4ac4a1492b109422c1099d3 (patch)
tree72c42bba7325435fc7119a21f3f3be742d17baf7 /cpu/mep-sample-ucidsp.cpu
parent1320cb92da10d194a5bb0c34ce552dffa52faeb5 (diff)
downloadgdb-3a3f1548fa383791f4ac4a1492b109422c1099d3.zip
gdb-3a3f1548fa383791f4ac4a1492b109422c1099d3.tar.gz
gdb-3a3f1548fa383791f4ac4a1492b109422c1099d3.tar.bz2
Special case NULL pointers in dynamic type resolution
commit f18fc7e5 ("gdb, types: Resolve pointer types dynamically") caused a regression on a test case in the AdaCore internal test suite. The issue here is that gdb would try to resolve the type of a dynamic pointer that happened to be NULL. In this case, the "Location address is not set." error would end up being thrown from the DWARF expression evaluator. I think it makes more sense to special-case NULL pointers and not try to resolve their target type, as that type can't really be accessed anyway. This patch implements this idea, and also adds the missing Ada test case.
Diffstat (limited to 'cpu/mep-sample-ucidsp.cpu')
0 files changed, 0 insertions, 0 deletions