mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
* config/vx-gdb.exp (spawn_vxgdb): Use default_gdb_start instead
of replicating gdb startup code.
This commit is contained in:
@ -1,5 +1,14 @@
|
|||||||
Wed Feb 15 14:23:28 1995 J.T. Conklin <jtc@rtl.cygnus.com>
|
Wed Feb 15 14:23:28 1995 J.T. Conklin <jtc@rtl.cygnus.com>
|
||||||
|
|
||||||
|
* config/vx-gdb.exp (spawn_vxgdb): Use default_gdb_start instead
|
||||||
|
of replicating gdb startup code.
|
||||||
|
|
||||||
|
* config/mt-vxworks (LDFLAGS): Set to -r.
|
||||||
|
(CFLAGS_FOR_TARGET): Removed.
|
||||||
|
|
||||||
|
* config/vx-gdb.exp: always set prompt; gdb.exp sets it to
|
||||||
|
(gdb) and gdb for vxworks uses (vxgdb).
|
||||||
|
|
||||||
* Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
|
* Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
|
||||||
executable is not in the tree and host != target, use sed and
|
executable is not in the tree and host != target, use sed and
|
||||||
program_transform_name to determine the gdb name used by the
|
program_transform_name to determine the gdb name used by the
|
||||||
|
@ -61,9 +61,6 @@ proc gdb_load { arg } {
|
|||||||
# gdb_start -- start gdb running and
|
# gdb_start -- start gdb running and
|
||||||
#
|
#
|
||||||
proc gdb_start { } {
|
proc gdb_start { } {
|
||||||
global GDB
|
|
||||||
global GDBFLAGS
|
|
||||||
global spawn_id
|
|
||||||
global prompt
|
global prompt
|
||||||
global verbose
|
global verbose
|
||||||
global targetname
|
global targetname
|
||||||
@ -107,49 +104,12 @@ proc gdb_start { } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proc spawn_vxgdb { } {
|
proc spawn_vxgdb { } {
|
||||||
global GDB
|
|
||||||
global GDBFLAGS
|
|
||||||
global spawn_id
|
|
||||||
global prompt
|
global prompt
|
||||||
global verbose
|
global verbose
|
||||||
global targetname
|
global targetname
|
||||||
|
|
||||||
# start GDB
|
default_gdb_start
|
||||||
if [ llength $GDBFLAGS ] then {
|
|
||||||
if {[which $GDB] != 0} then {
|
|
||||||
spawn $GDB $GDBFLAGS
|
|
||||||
} else {
|
|
||||||
perror "$GDB does not exist."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if {[which $GDB] != 0} then {
|
|
||||||
spawn $GDB
|
|
||||||
} else {
|
|
||||||
perror "$GDB does not exist."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
expect {
|
|
||||||
-re ".*$prompt $" {
|
|
||||||
verbose "$GDB initialized for cross mode to Vxworks\n"
|
|
||||||
}
|
|
||||||
-re "$prompt $" {
|
|
||||||
perror "GDB never initialized."
|
|
||||||
return -1
|
|
||||||
}
|
|
||||||
timeout {
|
|
||||||
perror "(timeout) GDB never initialized."
|
|
||||||
return -1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# force the height to "unlimited", so no pagers get used
|
|
||||||
send "set height 0\n"
|
|
||||||
expect -re ".*$prompt $" {}
|
|
||||||
# force the width to "unlimited", so no wraparound occurs
|
|
||||||
send "set width 0\n"
|
|
||||||
expect -re ".*$prompt $" {}
|
|
||||||
# set the default arguments to "main", so that "run" with no
|
# set the default arguments to "main", so that "run" with no
|
||||||
# arguments will work correctly.
|
# arguments will work correctly.
|
||||||
send "set args main\n"
|
send "set args main\n"
|
||||||
|
Reference in New Issue
Block a user