diff options
author | Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> | 2011-04-13 21:12:20 +0000 |
---|---|---|
committer | Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> | 2011-04-13 21:12:20 +0000 |
commit | 3363d018fdf6efebe4aa50fc6fecf679acc7e700 (patch) | |
tree | 5f56b9b9ebadf63d61ae05aa21cc38d330b82ca6 /gdb/testsuite/gdb.base/gdb1090.exp | |
parent | 2878145693aa0f42133e52e5378ac934bd4958cd (diff) | |
download | gdb-3363d018fdf6efebe4aa50fc6fecf679acc7e700.zip gdb-3363d018fdf6efebe4aa50fc6fecf679acc7e700.tar.gz gdb-3363d018fdf6efebe4aa50fc6fecf679acc7e700.tar.bz2 |
* gdb.base/gdb1090.exp: Change breakpoint location to read the
content of 's24' correctly (avoiding "optimized out").
* gdb.base/gdb1090.c: Add comment in order to set breakpoint.
Diffstat (limited to 'gdb/testsuite/gdb.base/gdb1090.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/gdb1090.exp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/gdb1090.exp b/gdb/testsuite/gdb.base/gdb1090.exp index a15fd04..ab568ab 100644 --- a/gdb/testsuite/gdb.base/gdb1090.exp +++ b/gdb/testsuite/gdb.base/gdb1090.exp @@ -40,11 +40,13 @@ gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} -if ![runto marker] then { - perror "couldn't run to breakpoint" - continue -} -gdb_test "up" ".*foo.*" "up from marker" +if ![runto_main] then { + fail "Can't run to main" + return 1 +} + +gdb_breakpoint [gdb_get_line_number "break-here"] +gdb_continue_to_breakpoint "break-here" ".* break-here .*" gdb_test_multiple "print s24" "print s24" { -re "\\\$\[0-9\]* = \\{field_0 = 1170, field_1 = 64701\\}\r\n$gdb_prompt $" { |