diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-11-12 21:47:47 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@codesourcery.com> | 2010-11-12 21:47:47 +0000 |
commit | b04c2f88b6a0bcb3c241c6a2f91d93bd3476bbf2 (patch) | |
tree | 0f076c658a65cbf0bfd813fb25b9663458c87ad2 /gdb/testsuite | |
parent | ae9d7ce40fc2cb634140c62af0208b48eabf6cfb (diff) | |
download | gdb-b04c2f88b6a0bcb3c241c6a2f91d93bd3476bbf2.zip gdb-b04c2f88b6a0bcb3c241c6a2f91d93bd3476bbf2.tar.gz gdb-b04c2f88b6a0bcb3c241c6a2f91d93bd3476bbf2.tar.bz2 |
gdb/testsuite/
* gdb.base/break-entry.exp: Skip if using a stub.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break-entry.exp | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0694d9c..2a6c11b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2010-11-12 Nathan Froyd <froydnj@codesourcery.com> + * gdb.base/break-entry.exp: Skip if using a stub. + +2010-11-12 Nathan Froyd <froydnj@codesourcery.com> + * gdb.python/py-inferior.exp: Pack values in target endianness. 2010-11-12 Tom Tromey <tromey@redhat.com> diff --git a/gdb/testsuite/gdb.base/break-entry.exp b/gdb/testsuite/gdb.base/break-entry.exp index 1360504..151eb04 100644 --- a/gdb/testsuite/gdb.base/break-entry.exp +++ b/gdb/testsuite/gdb.base/break-entry.exp @@ -21,6 +21,20 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} start.c {additional_flags= return -1 } +# If we're using a stub, we'll already be debugging a live program and +# stopped at the entry point when we connect, and so the runto below +# will issue a "continue", which always skips any breakpoint at PC. +# When testing with a native target (or some other target that supports +# "run"), runto will do a "run", which first creates the process, +# leaving the PC at the entry point, just like the stub case, but then +# continues the process with the equivalent of "jump *$PC", which +# triggers any breakpoint at $PC. The latter is what we want to test. + +if [target_info exists use_gdb_stub] { + untested ${testfile}.exp + return +} + set test "info files" set entry "" gdb_test_multiple $test $test { |