mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 17:31:13 +08:00
Use default version procedure.
This commit is contained in:
@ -39,16 +39,7 @@ if ![info exists decimal] then {
|
|||||||
# gdb_version -- extract and print the version number of gcc
|
# gdb_version -- extract and print the version number of gcc
|
||||||
#
|
#
|
||||||
proc gdb_version {} {
|
proc gdb_version {} {
|
||||||
global GDB
|
default_gdb_version
|
||||||
global GDBFLAGS
|
|
||||||
if {[which $GDB] != 0} then {
|
|
||||||
set tmp [exec echo "q" | $GDB]
|
|
||||||
set version "[lindex $tmp [lsearch $tmp "\[0-9\]*"]]"
|
|
||||||
set version "[string range $version 0 [expr [string length $version]-2]]"
|
|
||||||
clone_output "[which $GDB] version $version $GDBFLAGS\n"
|
|
||||||
} else {
|
|
||||||
warning "$GDB does not exist"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -37,13 +37,7 @@ if ![info exists prompt] then {
|
|||||||
# gdb_version -- extract and print the version number of gcc
|
# gdb_version -- extract and print the version number of gcc
|
||||||
#
|
#
|
||||||
proc gdb_version {} {
|
proc gdb_version {} {
|
||||||
global GDB
|
default_gdb_version
|
||||||
global GDBFLAGS
|
|
||||||
global prompt
|
|
||||||
set tmp [exec echo "q" | $GDB]
|
|
||||||
set version [lindex $tmp [lsearch $tmp "\[0-9\]*"]]
|
|
||||||
set version [string range $version 0 [expr [string length $version]-2]]
|
|
||||||
clone_output "[which $GDB] version $version $GDBFLAGS\n"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user