mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
gdb/testsuite/
* lib/future.exp (gdb_default_target_compile): Use tail name of $destfile as the output name of compile. Move the generated file to $destfile on build.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2013-07-18 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
|
* lib/future.exp (gdb_default_target_compile): Use tail name
|
||||||
|
of $destfile as the output name of compile. Move the
|
||||||
|
generated file to $destfile on build.
|
||||||
|
|
||||||
2013-07-18 Yao Qi <yao@codesourcery.com>
|
2013-07-18 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* lib/gdb.exp (gdb_compile): Set
|
* lib/gdb.exp (gdb_compile): Set
|
||||||
|
@ -419,8 +419,8 @@ proc gdb_default_target_compile {source destfile type options} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if {[is_remote host]} {
|
if {[is_remote host]} {
|
||||||
append add_flags " -o a.out"
|
append add_flags " -o " [file tail $destfile]
|
||||||
remote_file host delete a.out
|
remote_file host delete [file tail $destfile]
|
||||||
} else {
|
} else {
|
||||||
if { $destfile != "" } {
|
if { $destfile != "" } {
|
||||||
append add_flags " -o $destfile"
|
append add_flags " -o $destfile"
|
||||||
@ -478,8 +478,8 @@ proc gdb_default_target_compile {source destfile type options} {
|
|||||||
|
|
||||||
set compiler_flags $opts
|
set compiler_flags $opts
|
||||||
if {[is_remote host]} {
|
if {[is_remote host]} {
|
||||||
remote_upload host a.out $destfile
|
remote_upload host [file tail $destfile] $destfile
|
||||||
remote_file host delete a.out
|
remote_file host delete [file tail $destfile]
|
||||||
}
|
}
|
||||||
set comp_output [prune_warnings [lindex $status 1]]
|
set comp_output [prune_warnings [lindex $status 1]]
|
||||||
regsub "^\[\r\n\]+" $comp_output "" comp_output
|
regsub "^\[\r\n\]+" $comp_output "" comp_output
|
||||||
|
Reference in New Issue
Block a user