diff options
author | Tom de Vries <tdevries@suse.de> | 2020-03-11 19:37:01 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-03-11 19:37:01 +0100 |
commit | 5308d1e77167b4bb133302d7a6f66e599abee420 (patch) | |
tree | 0592c550989b2743d8af087592d119cfbb9a7750 | |
parent | 9e8f1c9000fa42b68982ee69f622010a81656e81 (diff) | |
download | gdb-5308d1e77167b4bb133302d7a6f66e599abee420.zip gdb-5308d1e77167b4bb133302d7a6f66e599abee420.tar.gz gdb-5308d1e77167b4bb133302d7a6f66e599abee420.tar.bz2 |
[gdb/testsuite] Set language in gdb.ada/minsym.exp
When building gdb using configure flag
--with-separate-debug-dir=/usr/lib/debug, and running test-case
gdb.ada/minsyms.exp, I run into:
...
(gdb) PASS: gdb.ada/minsyms.exp: print some_minsym
print integer(some_minsym)^M
A syntax error in expression, near `some_minsym)'.^M
(gdb) FAIL: gdb.ada/minsyms.exp: print integer(some_minsym)
...
and 2 other FAILs.
This is due to the fact that the language after arriving at the ada main
function turns out to be auto/c. [ This has been filed as PR25655 -
"Language is not auto/ada in main ada function for exec without debug info". ]
When building gdb without the configure flag mentioned above, we have instead
auto/ada in the ada main function, and all tests pass.
Fix the FAILs by working around PR25655 in the test-case, and manually setting
the language to ada.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2020-03-11 Tom de Vries <tdevries@suse.de>
* gdb.ada/minsyms.exp: Set language to ada.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.ada/minsyms.exp | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f7cdea7..f98edaf 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2020-03-11 Tom de Vries <tdevries@suse.de> + * gdb.ada/minsyms.exp: Set language to ada. + +2020-03-11 Tom de Vries <tdevries@suse.de> + * gdb.server/sysroot.exp: Allow GLIBC's printf alias __printf. 2020-03-11 Tom de Vries <tdevries@suse.de> diff --git a/gdb/testsuite/gdb.ada/minsyms.exp b/gdb/testsuite/gdb.ada/minsyms.exp index 1730eb3..1bed2e4 100644 --- a/gdb/testsuite/gdb.ada/minsyms.exp +++ b/gdb/testsuite/gdb.ada/minsyms.exp @@ -28,6 +28,8 @@ if ![runto "_ada_foo_qb07_057" ] then { return } +gdb_test_no_output "set language ada" + gdb_test "print some_minsym" \ "'some_minsym' has unknown type; cast it to its declared type" |