mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
[gdb/testsuite] Remove stale exec in gdb_compile_ada
When running test-case gdb.ada/ptype_tagged_param.exp, I get: ... PASS: gdb.ada/ptype_tagged_param.exp: compilation foo.adb ... However, when I then de-install gnatmake and run again, I get the same result. This is due to a stale exec. After removing the stale exec, I get: ... UNSUPPORTED: gdb.ada/ptype_tagged_param.exp: compilation foo.adb ... Fix this removing the stale exec in gdb_compile_ada before compilation. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-02-13 Tom de Vries <tdevries@suse.de> * lib/ada.exp (gdb_compile_ada): Delete stale exec before compilation.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2020-02-13 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
|
* lib/ada.exp (gdb_compile_ada): Delete stale exec before compilation.
|
||||||
|
|
||||||
2020-02-13 Tom de Vries <tdevries@suse.de>
|
2020-02-13 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
* gdb.ada/catch_ex_std.exp: Indicate unsupported if gnatbind/gnatlink
|
* gdb.ada/catch_ex_std.exp: Indicate unsupported if gnatbind/gnatlink
|
||||||
|
@ -60,6 +60,8 @@ proc gdb_compile_ada {source dest type options} {
|
|||||||
set gprdir [file dirname $srcdir]
|
set gprdir [file dirname $srcdir]
|
||||||
set objdir [file dirname $dest]
|
set objdir [file dirname $dest]
|
||||||
|
|
||||||
|
file delete $dest
|
||||||
|
|
||||||
# Although strictly not necessary, we force the recompilation
|
# Although strictly not necessary, we force the recompilation
|
||||||
# of all units (additional_flags=-f). This is what is done
|
# of all units (additional_flags=-f). This is what is done
|
||||||
# when using GCC to build programs in the other languages,
|
# when using GCC to build programs in the other languages,
|
||||||
|
Reference in New Issue
Block a user