diff options
author | Tom Tromey <tromey@adacore.com> | 2024-02-13 11:47:38 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-03-11 14:33:40 -0600 |
commit | 3a3f1548fa383791f4ac4a1492b109422c1099d3 (patch) | |
tree | 72c42bba7325435fc7119a21f3f3be742d17baf7 /cpu/iq2000.opc | |
parent | 1320cb92da10d194a5bb0c34ce552dffa52faeb5 (diff) | |
download | gdb-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/iq2000.opc')
0 files changed, 0 insertions, 0 deletions