mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
* lib/gdb.exp(gdb_expect): Declare errorInfo and errorCode
as global variables.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Tue Jun 17 13:10:10 1997 Bob Manson <manson@charmed.cygnus.com>
|
||||||
|
|
||||||
|
* lib/gdb.exp(gdb_expect): Declare errorInfo and errorCode
|
||||||
|
as global variables.
|
||||||
|
|
||||||
Sat Jun 14 09:23:26 1997 Bob Manson <manson@charmed.cygnus.com>
|
Sat Jun 14 09:23:26 1997 Bob Manson <manson@charmed.cygnus.com>
|
||||||
|
|
||||||
* lib/gdb.exp: Close connection to remote host if gdb doesn't
|
* lib/gdb.exp: Close connection to remote host if gdb doesn't
|
||||||
|
@ -877,6 +877,8 @@ proc gdb_expect { args } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if {$code == 1} {
|
if {$code == 1} {
|
||||||
|
global errorInfo errorCode;
|
||||||
|
|
||||||
return -code error -errorinfo $errorInfo -errorcode $errorCode $string
|
return -code error -errorinfo $errorInfo -errorcode $errorCode $string
|
||||||
} elseif {$code == 2} {
|
} elseif {$code == 2} {
|
||||||
return -code return $string
|
return -code return $string
|
||||||
|
Reference in New Issue
Block a user