aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/ChangeLog
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2019-12-27 20:58:42 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2019-12-27 21:02:35 -0500
commitb28a729db188235ce61f3a03e35a27f9427af12e (patch)
tree4048192488afe36e73036d6fea7f46cb1ecfec4c /gdb/testsuite/ChangeLog
parent1ddaf334cfca50957fe33a6b23fab79a85ea1655 (diff)
downloadgdb-b28a729db188235ce61f3a03e35a27f9427af12e.zip
gdb-b28a729db188235ce61f3a03e35a27f9427af12e.tar.gz
gdb-b28a729db188235ce61f3a03e35a27f9427af12e.tar.bz2
[PATCH] Adjust test gdb.ada/ptype_tagged_param.exp for when GNAT runtime does not have debug info
This test verifies that GDB correctly identifies the run-time type of "s" as being the type "Circle". However, that can only be done correctly if the GNAT runtime has been compiled and shipped with debug information, so that GDB can poke in its internal data structures. Currently the test fails when when running against a GNAT runtime without debug info. This is the case, for example, on Arch Linux using the distribution package. This patch adds a helper in lib/ada.exp to check whether the GNAT runtime has debug info or not. It then uses it in gdb.ada/ptype_tagged_param.exp to expect a different result, depending on whether we have debug info or not in the runtime. At first, I made it so we would XFAIL the test, in the absence of debug info, but then I thought that we might as well test for the output we expect in the absence of debug info instead. gdb/testsuite/ChangeLog: * lib/ada.exp (gnat_runtime_has_debug_info): New proc. * lib/gnat_debug_info_test.adb: New file. * gdb.ada/ptype_tagged_param.exp: Use gnat_runtime_has_debug_info, expect a different output if runtime does not have debug info.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r--gdb/testsuite/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 488196c..31208bd 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2019-12-27 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * lib/ada.exp (gnat_runtime_has_debug_info): New proc.
+ * lib/gnat_debug_info_test.adb: New file.
+ * gdb.ada/ptype_tagged_param.exp: Use
+ gnat_runtime_has_debug_info, expect a different output if
+ runtime does not have debug info.
+
2019-12-20 Simon Marchi <simon.marchi@efficios.com>
* lib/sym-info-cmds.exp (GDBInfoSymbols::check_no_entry): Add