mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Add values for RUNTEST and RUNTESTFLAGS so cross testing works better.
This commit is contained in:
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTEST=a29k-amd-udi-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTEST=sparclitefrwcompat-aout-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTEST=i386-aout-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTEST=i960-intel-nindy-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTEST=i960-vxworks-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -33,7 +33,7 @@ OBJDUMPFLAGS =
|
|||||||
DEMANGLE = m68k-aout-demangle
|
DEMANGLE = m68k-aout-demangle
|
||||||
DEMANGLEFLAGS =
|
DEMANGLEFLAGS =
|
||||||
|
|
||||||
COPY = m68k-aout-copy
|
COPY = m68k-aout-objcopy
|
||||||
COPYFLAGS =
|
COPYFLAGS =
|
||||||
|
|
||||||
# other utils
|
# other utils
|
||||||
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTEST=m68k-aout-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# compilers and assemblers
|
# compilers and assemblers
|
||||||
CC = m68k-coff-gcc
|
CC = m68k-coff-gcc
|
||||||
CFLAGS = -g -D${target_os} -u read
|
CFLAGS = -g -D${target_os}
|
||||||
C++ = ${CC}
|
C++ = ${CC}
|
||||||
C++FLAGS = ${CFLAGS}
|
C++FLAGS = ${CFLAGS}
|
||||||
CXX = ${CC}
|
CXX = ${CC}
|
||||||
@ -10,8 +10,8 @@ ASFLAGS =
|
|||||||
FC =
|
FC =
|
||||||
FCFLAGS =
|
FCFLAGS =
|
||||||
LD = ld
|
LD = ld
|
||||||
LDFLAGS = -T${srcdir}/config/m68k.gld
|
LDFLAGS = -T/usr/cygnus/progressive-921225/H-sparc-sun-sunos4.1.1/lib/gcc-lib/m68k-coff/cygnus-2.2.4/mvme135.ld
|
||||||
LIBS = -lstub
|
LIBS = -lgcc -lc -lg -lmvme135
|
||||||
|
|
||||||
# binutils
|
# binutils
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ OBJDUMPFLAGS =
|
|||||||
DEMANGLE = m68k-coff-demangle
|
DEMANGLE = m68k-coff-demangle
|
||||||
DEMANGLEFLAGS =
|
DEMANGLEFLAGS =
|
||||||
|
|
||||||
COPY = m68k-coff-copy
|
COPY = m68k-coff-objcopy
|
||||||
COPYFLAGS =
|
COPYFLAGS =
|
||||||
|
|
||||||
# other utils
|
# other utils
|
||||||
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTEST=m68k-coff-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTEST=m68k-aout-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -9,7 +9,7 @@ AS = m68k-coff-as
|
|||||||
ASFLAGS =
|
ASFLAGS =
|
||||||
FC =
|
FC =
|
||||||
FCFLAGS =
|
FCFLAGS =
|
||||||
LD = m68k-coff-ld
|
LD = ld
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
LIBS =
|
LIBS =
|
||||||
|
|
||||||
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTEST=m68k-coff-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
RUNTEST = m68k-vxworks-runtest
|
|
||||||
RUNTESTFLAGS =
|
|
||||||
|
|
||||||
# compilers and assemblers
|
# compilers and assemblers
|
||||||
CC = m68k-vxworks-gcc
|
CC = m68k-vxworks-gcc
|
||||||
CFLAGS = -g -r -D${target_os} -I/cygint/limbo/unsupported/packages/vxworks/vx68/5.0.3/h
|
CFLAGS = -g -r -D${target_os} -I/unsupported/packages/vxworks/vx68/5.0.3/h -I/s1/packages/vx68/h
|
||||||
C++ = ${CC}
|
C++ = ${CC}
|
||||||
C++FLAGS = ${CFLAGS}
|
C++FLAGS = ${CFLAGS}
|
||||||
CXX = ${CC}
|
CXX = ${CC}
|
||||||
@ -58,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTEST=m68k-vxworks-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTESTFLAGS=mips-idt-ecoff-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTESTFLAGS=sparc-aout-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTESTFLAGS=sparc-vxworks-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -55,3 +55,5 @@ GDBFLAGS = -nx
|
|||||||
DIFF = diff
|
DIFF = diff
|
||||||
DIFFFLAGS =
|
DIFFFLAGS =
|
||||||
|
|
||||||
|
RUNTESTFLAGS=sparclite-runtest
|
||||||
|
RUNTESTFLAGS=
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
# This file was written by Rob Savoye. (rob@cygnus.com)
|
# This file was written by Rob Savoye. (rob@cygnus.com)
|
||||||
|
|
||||||
|
load_lib gdb.exp
|
||||||
|
|
||||||
# variables that need to set up
|
# variables that need to set up
|
||||||
#
|
#
|
||||||
if ![info exists prompt] then {
|
if ![info exists prompt] then {
|
||||||
@ -168,14 +170,14 @@ proc gdb_start {} {
|
|||||||
set timeout [expr "$timeout + 60"]
|
set timeout [expr "$timeout + 60"]
|
||||||
if [ llength $GDBFLAGS ] then {
|
if [ llength $GDBFLAGS ] then {
|
||||||
if {[which $GDB] != 0} then {
|
if {[which $GDB] != 0} then {
|
||||||
spawn $GDB $GDBFLAGS
|
spawn $GDB $GDBFLAGS
|
||||||
} else {
|
} else {
|
||||||
error "$GDB does not exist."
|
error "$GDB does not exist."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if {[which $GDB] != 0} then {
|
if {[which $GDB] != 0} then {
|
||||||
spawn $GDB
|
spawn $GDB
|
||||||
} else {
|
} else {
|
||||||
error "$GDB does not exist."
|
error "$GDB does not exist."
|
||||||
exit 1
|
exit 1
|
||||||
@ -185,8 +187,8 @@ proc gdb_start {} {
|
|||||||
-re ".*$prompt $" {
|
-re ".*$prompt $" {
|
||||||
if $verbose>1 then {
|
if $verbose>1 then {
|
||||||
send_user "GDB initialized for native mode\n"
|
send_user "GDB initialized for native mode\n"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
-re "$prompt $" {
|
-re "$prompt $" {
|
||||||
error "GDB never initialized."
|
error "GDB never initialized."
|
||||||
return -1
|
return -1
|
||||||
@ -215,14 +217,18 @@ proc gdb_start {} {
|
|||||||
-re ".*$prompt $" {
|
-re ".*$prompt $" {
|
||||||
if $verbose>2 then {
|
if $verbose>2 then {
|
||||||
send_user "Seting width to 0.\n"
|
send_user "Seting width to 0.\n"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
warning "Couldn't set the width to 0."
|
warning "Couldn't set the width to 0."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
proc gdb_exit { } {
|
||||||
|
default_gdb_exit
|
||||||
|
}
|
||||||
|
|
||||||
# These only need to be uncommented for debugging test cases. They exist
|
# These only need to be uncommented for debugging test cases. They exist
|
||||||
# mainly to catch programming errors
|
# mainly to catch programming errors
|
||||||
#expect_after {
|
#expect_after {
|
||||||
@ -235,7 +241,6 @@ proc gdb_start {} {
|
|||||||
# "Undefined command" { error "send string probably wrong." }
|
# "Undefined command" { error "send string probably wrong." }
|
||||||
#}
|
#}
|
||||||
|
|
||||||
load_lib gdb.exp
|
|
||||||
|
|
||||||
set binpath /s1/users/rob/vxworks/bin/somewhere-bogus-that-needs-configuring
|
set binpath /s1/users/rob/vxworks/bin/somewhere-bogus-that-needs-configuring
|
||||||
set bin $GDB
|
set bin $GDB
|
||||||
|
@ -23,6 +23,9 @@
|
|||||||
# load support libraries
|
# load support libraries
|
||||||
#
|
#
|
||||||
load_lib remote.exp
|
load_lib remote.exp
|
||||||
|
load_lib gdb.exp
|
||||||
|
load_lib vxworks.exp
|
||||||
|
|
||||||
set shell_prompt "->"
|
set shell_prompt "->"
|
||||||
|
|
||||||
# these need to be initialized only if site.exp doesn't set them
|
# these need to be initialized only if site.exp doesn't set them
|
||||||
@ -134,26 +137,32 @@ proc gdb_start { } {
|
|||||||
|
|
||||||
# reboot vxworks to get a clean start
|
# reboot vxworks to get a clean start
|
||||||
if $reboot then {
|
if $reboot then {
|
||||||
send_user "Rebooting VxWorks, Please wait...\n"
|
verbose "Rebooting VxWorks, Please wait...\n"
|
||||||
|
|
||||||
send -i $shell_id "\CX"
|
send -i $shell_id "\CX"
|
||||||
set timeout 120
|
set timeout 120
|
||||||
expect {
|
expect {
|
||||||
-i $shell_id -re "Connection closed.*$" {
|
-i $shell_id -re "Connection closed.*$" {
|
||||||
verbose "\nVxWorks has closed the shell" 1
|
verbose "\nVxWorks has closed the shell"
|
||||||
}
|
}
|
||||||
eof { error "(eof) never disconnected from VxWorks shell."; return -1 }
|
-i $shell_id eof {
|
||||||
timeout { error "(timeout) never disconnected from VxWorks shell."; return -1 }
|
error "(eof) never disconnected from VxWorks shell."
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
-i $shell_id timeout {
|
||||||
|
error "(timeout) never disconnected from VxWorks shell."
|
||||||
|
return -1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
close -i $shell_id
|
catch "close -i $shell_id" tmp
|
||||||
|
wait -i $shell_id
|
||||||
|
# exec sleep 30
|
||||||
|
|
||||||
exec sleep 30
|
# set timeout 60
|
||||||
|
# set shell_id [ eval $connectmode "$targetname" ]
|
||||||
set timeout 60
|
# if $shell_id<0 then {
|
||||||
set shell_id [ eval $connectmode "$targetname" ]
|
# error "Couldn't connect to $targetname."
|
||||||
if $shell_id<0 then {
|
# }
|
||||||
error "Couldn't connect to $targetname."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
set timeout 10
|
set timeout 10
|
||||||
|
|
||||||
@ -170,17 +179,32 @@ proc spawn_vxgdb { } {
|
|||||||
|
|
||||||
# start GDB
|
# start GDB
|
||||||
if [ llength $GDBFLAGS ] then {
|
if [ llength $GDBFLAGS ] then {
|
||||||
spawn $GDB $GDBFLAGS
|
if {[which $GDB] != 0} then {
|
||||||
|
spawn $GDB $GDBFLAGS
|
||||||
|
} else {
|
||||||
|
error "$GDB does not exist."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
spawn $GDB
|
if {[which $GDB] != 0} then {
|
||||||
|
spawn $GDB
|
||||||
|
} else {
|
||||||
|
error "$GDB does not exist."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
expect {
|
expect {
|
||||||
-re ".*$prompt $" {
|
-re ".*$prompt $" {
|
||||||
verbose "$GDB initialized for cross mode to Vxworks\n" 1
|
verbose "$GDB initialized for cross mode to Vxworks\n"
|
||||||
|
}
|
||||||
|
-re "$prompt $" {
|
||||||
|
error "GDB never initialized."
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
timeout {
|
||||||
|
error "(timeout) GDB never initialized."
|
||||||
|
return -1
|
||||||
}
|
}
|
||||||
-re "$prompt $" { error "GDB never initialized."; return -1 }
|
|
||||||
timeout { error "(timeout) GDB never initialized.";
|
|
||||||
return -1 }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# force the height to "unlimited", so no pagers get used
|
# force the height to "unlimited", so no pagers get used
|
||||||
@ -217,6 +241,12 @@ proc spawn_vxgdb { } {
|
|||||||
set timeout 10
|
set timeout 10
|
||||||
}
|
}
|
||||||
|
|
||||||
|
proc gdb_exit { } {
|
||||||
|
global shell_id
|
||||||
|
exit_remote_shell $shell_id
|
||||||
|
default_gdb_exit
|
||||||
|
}
|
||||||
|
|
||||||
#expect_after {
|
#expect_after {
|
||||||
# "<return>" { send "\n"; error "Window too small." }
|
# "<return>" { send "\n"; error "Window too small." }
|
||||||
# -re "\(y or n\) " { send "n\n"; error "Got interactive prompt." }
|
# -re "\(y or n\) " { send "n\n"; error "Got interactive prompt." }
|
||||||
@ -227,14 +257,5 @@ proc spawn_vxgdb { } {
|
|||||||
# "Undefined command" { error "send string probably wrong." }
|
# "Undefined command" { error "send string probably wrong." }
|
||||||
#}
|
#}
|
||||||
|
|
||||||
load_lib gdb.exp
|
|
||||||
|
|
||||||
gdb_start
|
gdb_start
|
||||||
|
|
||||||
# make sure gdb has actually started, otherwise if the first test
|
|
||||||
# timesout, DejaGnu crashes
|
|
||||||
#send "\n"
|
|
||||||
#expect {
|
|
||||||
# -re "$prompt"
|
|
||||||
# }
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user