mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
* config/unix.exp: Add global before seeing if the variables for
nm, objdump, and size exist.
This commit is contained in:
@ -21,21 +21,27 @@
|
|||||||
|
|
||||||
load_lib util-defs.exp
|
load_lib util-defs.exp
|
||||||
|
|
||||||
|
global NM
|
||||||
if ![info exists NM] then {
|
if ![info exists NM] then {
|
||||||
set NM [transform nm]
|
set NM [transform nm]
|
||||||
}
|
}
|
||||||
|
global NMFLAGS
|
||||||
if ![info exists NMFLAGS] then {
|
if ![info exists NMFLAGS] then {
|
||||||
set NMFLAGS ""
|
set NMFLAGS ""
|
||||||
}
|
}
|
||||||
|
global SIZE
|
||||||
if ![info exists SIZE] then {
|
if ![info exists SIZE] then {
|
||||||
set SIZE [transform size]
|
set SIZE [transform size]
|
||||||
}
|
}
|
||||||
|
global SIZEFLAGS
|
||||||
if ![info exists SIZEFLAGS] then {
|
if ![info exists SIZEFLAGS] then {
|
||||||
set SIZEFLAGS ""
|
set SIZEFLAGS ""
|
||||||
}
|
}
|
||||||
|
global OBJDUMP
|
||||||
if ![info exists OBJDUMP] then {
|
if ![info exists OBJDUMP] then {
|
||||||
set OBJDUMP [transform objdump]
|
set OBJDUMP [transform objdump]
|
||||||
}
|
}
|
||||||
|
global OBJDUMPFLAGS
|
||||||
if ![info exists OBJDUMPFLAGS] then {
|
if ![info exists OBJDUMPFLAGS] then {
|
||||||
set OBJDUMPFLAGS ""
|
set OBJDUMPFLAGS ""
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user