mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
gdb/testsuite/
* gdb.stabs/gdb11479.exp: Use runto_main.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.stabs/gdb11479.exp: Use runto_main.
|
||||||
|
|
||||||
2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
|
2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
|
||||||
|
|
||||||
* gdb.base/break-entry.exp: Skip if using a stub.
|
* gdb.base/break-entry.exp: Skip if using a stub.
|
||||||
|
@ -25,8 +25,12 @@ if $tracelevel then {
|
|||||||
set testfile "gdb11479"
|
set testfile "gdb11479"
|
||||||
|
|
||||||
proc do_test {version} {
|
proc do_test {version} {
|
||||||
|
if ![runto_main] {
|
||||||
|
fail "Can't run to main $version"
|
||||||
|
return -1
|
||||||
|
}
|
||||||
gdb_test "rb test" "" "Set breakpoints $version"
|
gdb_test "rb test" "" "Set breakpoints $version"
|
||||||
gdb_test "run" "Breakpoint .* test2 .*" "Stop at first breakpoint $version"
|
gdb_test "continue" "Breakpoint .* test2 .*" "Stop at first breakpoint $version"
|
||||||
# Check that the struct is read in correctly
|
# Check that the struct is read in correctly
|
||||||
gdb_test "print *t" ".*\{x = 5, y = 25, b = 2.5\}.*" \
|
gdb_test "print *t" ".*\{x = 5, y = 25, b = 2.5\}.*" \
|
||||||
"Inspect t in test2 $version"
|
"Inspect t in test2 $version"
|
||||||
|
Reference in New Issue
Block a user