[Bug ada/24919] FAIL: gdb.ada/catch_ex.exp: insert catchpoint on Program_Error (GDB internal error)

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Wed Aug 21 07:03:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=24919

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 11957
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11957&action=edit
catch_ex.tgz

I've applied the following patch to keep the intermediate results and annotate
foo.s:
...
diff --git a/gdb/testsuite/gdb.ada/catch_ex.exp
b/gdb/testsuite/gdb.ada/catch_ex.exp
index 5a560c1217..7ed169e4a4 100644
--- a/gdb/testsuite/gdb.ada/catch_ex.exp
+++ b/gdb/testsuite/gdb.ada/catch_ex.exp
@@ -17,7 +17,7 @@ load_lib "ada.exp"

 standard_ada_testfile foo

-if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug
additional_flags=-gnata ]] != "" } {
+if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug
additional_flags=-gnata additional_flags=-save-temps -additional_flags="-largs
-dA -margs"]] != "" } {
   return -1
 }

...

So hopefully you should be able to reproduce using these files:
...
$ ls -1 build/gdb/testsuite/outputs/gdb.ada/catch_ex
b~foo.adb
b~foo.ads
b~foo.ali
b~foo.o
foo
foo.ali
foo.o
foo.s
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list