diff options
author | Kung Hsu <kung@cygnus> | 1995-03-31 00:43:47 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1995-03-31 00:43:47 +0000 |
commit | 6413ee42db02bf41428713c63cfaab4dfb551ebb (patch) | |
tree | 9dfc09b8242ffbf12aae67e0991d47737747909a /gdb/testsuite | |
parent | 065924f7de118bb70b70a8bd3b099de2cba395ac (diff) | |
download | gdb-6413ee42db02bf41428713c63cfaab4dfb551ebb.zip gdb-6413ee42db02bf41428713c63cfaab4dfb551ebb.tar.gz gdb-6413ee42db02bf41428713c63cfaab4dfb551ebb.tar.bz2 |
* lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.
* gdb.base/break.exp: ditto.
* gdb.base/list.exp: ditto.
* gdb.base/bitfields.c: Add #ifdef usestubs in main().
* gdb.base/run.c: ditto.
* gdb.base/list0.c: ditto.
* gdb.base/funcargs.c: ditto.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/list.exp | 8 |
3 files changed, 19 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0eaadcf..b6a32b0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,13 @@ +Thu Mar 30 15:36:55 1995 Kung Hsu <kung@mexican.cygnus.com> + + * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs. + * gdb.base/break.exp: ditto. + * gdb.base/list.exp: ditto. + * gdb.base/bitfields.c: Add #ifdef usestubs in main(). + * gdb.base/run.c: ditto. + * gdb.base/list0.c: ditto. + * gdb.base/funcargs.c: ditto. + Wed Mar 29 17:09:29 1995 Stu Grossman (grossman@cygnus.com) * testsuite/config/rom68k.exp (gdb_target_rom68k): Use diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp index 5fb51fb..1b53a2b 100644 --- a/gdb/testsuite/gdb.base/break.exp +++ b/gdb/testsuite/gdb.base/break.exp @@ -143,10 +143,7 @@ if !$usestubs then { } } -if $usestubs { - gdb_test $cmd "Starting program.*Breakpoint \[0-9\]+,.*main .*argc.*argv.* at .*$srcfile:56.*56\[\t \]+if .argc.*" \ - "run until function breakpoint" -} +#if $usestubs {} # # run until the breakpoint at a line number diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp index 25c30c4..16214c9 100644 --- a/gdb/testsuite/gdb.base/list.exp +++ b/gdb/testsuite/gdb.base/list.exp @@ -900,6 +900,14 @@ gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load $objdir/$subdir/$binfile +if $usestubs { + send "step\n" + # if use stubs step out of the breakpoint() function. + expect { + -re "main.* at .*$prompt $" {} + timeout { fail "single step at breakpoint() (timeout)" ; return 0 } + } + send "set width 0\n" expect -re "$prompt $" |