mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
Fix Windows-target testing in mi_gdb_file_cmd
Similar to my recent fix for gdb_file_cmd, mi_gdb_file_cmd also runs into problems when GCC has created foo.exe given "-o foo". Apply exactly the same fix there as in gdb_file_cmd. This allows many more tests to succeed for Windows target that previously fell over. 2020-11-18 Joseph Myers <joseph@codesourcery.com> * lib/mi-support.exp (mi_gdb_file_cmd): Check for case where $arg.exe exists but $arg does not.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2020-11-18 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* lib/mi-support.exp (mi_gdb_file_cmd): Check for case where
|
||||||
|
$arg.exe exists but $arg does not.
|
||||||
|
|
||||||
2020-11-17 Gary Benson <gbenson@redhat.com>
|
2020-11-17 Gary Benson <gbenson@redhat.com>
|
||||||
|
|
||||||
* gdb.trace/trace-common.h (x86_trace_dummy): Add
|
* gdb.trace/trace-common.h (x86_trace_dummy): Add
|
||||||
|
@ -505,6 +505,11 @@ proc mi_gdb_file_cmd { arg } {
|
|||||||
global last_loaded_file
|
global last_loaded_file
|
||||||
upvar timeout timeout
|
upvar timeout timeout
|
||||||
|
|
||||||
|
# GCC for Windows target may create foo.exe given "-o foo".
|
||||||
|
if { ![file exists $arg] && [file exists "$arg.exe"] } {
|
||||||
|
set arg "$arg.exe"
|
||||||
|
}
|
||||||
|
|
||||||
set last_loaded_file $arg
|
set last_loaded_file $arg
|
||||||
|
|
||||||
if [is_remote host] {
|
if [is_remote host] {
|
||||||
|
Reference in New Issue
Block a user