mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
* lib/gdb.exp (gdb_compile): Avoid adding
gdb_saved_unbuffered_mode_obj if -nostdlib option is used.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2009-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* lib/gdb.exp (gdb_compile): Avoid adding
|
||||||
|
gdb_saved_unbuffered_mode_obj if -nostdlib option is used.
|
||||||
|
|
||||||
2009-10-01 Pierre Muller <muller@ics.u-strasbg.fr>
|
2009-10-01 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
* src/gdb/testsuite/gdb.base/shr1.c: Use %p in format string.
|
* src/gdb/testsuite/gdb.base/shr1.c: Use %p in format string.
|
||||||
|
@ -1824,9 +1824,13 @@ proc gdb_compile {source dest type options} {
|
|||||||
# reverse link order. In that case, we can use ldflags to
|
# reverse link order. In that case, we can use ldflags to
|
||||||
# avoid copying the object file to the host multiple
|
# avoid copying the object file to the host multiple
|
||||||
# times.
|
# times.
|
||||||
|
# This object can only be added if standard libraries are
|
||||||
|
# used. Thus, we need to disable it if -nostdlib option is used
|
||||||
|
if {[lsearch -regexp $options "-nostdlib"] < 0 } {
|
||||||
lappend options "ldflags=$gdb_saved_set_unbuffered_mode_obj"
|
lappend options "ldflags=$gdb_saved_set_unbuffered_mode_obj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
set result [target_compile $source $dest $type $options];
|
set result [target_compile $source $dest $type $options];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user