* [PATCH][gdb/testsuite] Set language in gdb.ada/minsym.exp
@ 2020-03-11 15:31 Tom de Vries
2020-03-11 18:17 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Tom de Vries @ 2020-03-11 15:31 UTC (permalink / raw)
To: gdb-patches
Hi,
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.
OK for trunk?
Thanks,
- Tom
[gdb/testsuite] Set language in gdb.ada/minsym.exp
gdb/testsuite/ChangeLog:
2020-03-11 Tom de Vries <tdevries@suse.de>
* gdb.ada/minsyms.exp: Set language to ada.
---
gdb/testsuite/gdb.ada/minsyms.exp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gdb/testsuite/gdb.ada/minsyms.exp b/gdb/testsuite/gdb.ada/minsyms.exp
index 1730eb3bd7..1bed2e40da 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"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][gdb/testsuite] Set language in gdb.ada/minsym.exp
2020-03-11 15:31 [PATCH][gdb/testsuite] Set language in gdb.ada/minsym.exp Tom de Vries
@ 2020-03-11 18:17 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2020-03-11 18:17 UTC (permalink / raw)
To: Tom de Vries; +Cc: gdb-patches
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> This is due to the fact that the language after arriving at the ada main
Tom> function turns out to be auto/c. [ This has been filed as PR25655 -
Tom> "Language is not auto/ada in main ada function for exec without debug info". ]
Curious.
Tom> OK for trunk?
Tom> gdb/testsuite/ChangeLog:
Tom> 2020-03-11 Tom de Vries <tdevries@suse.de>
Tom> * gdb.ada/minsyms.exp: Set language to ada.
This is ok, thanks.
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-11 18:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 15:31 [PATCH][gdb/testsuite] Set language in gdb.ada/minsym.exp Tom de Vries
2020-03-11 18:17 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox