diff options
author | Fred Fish <fnf@specifix.com> | 2002-03-26 14:54:27 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 2002-03-26 14:54:27 +0000 |
commit | d7679631e88e095c0ee4a7df9e6153ccc205faca (patch) | |
tree | 2937bb0b7373a1575352b983c828819045bc41e6 | |
parent | b91afed73bdfb757fef53f36d6a7ffe8357fafe0 (diff) | |
download | gdb-d7679631e88e095c0ee4a7df9e6153ccc205faca.zip gdb-d7679631e88e095c0ee4a7df9e6153ccc205faca.tar.gz gdb-d7679631e88e095c0ee4a7df9e6153ccc205faca.tar.bz2 |
2002-03-26 Fred Fish <fnf@redhat.com>
* gdb.base/list.exp: Revert the change made yesterday and add note
about why we don't list the default lines for remote targets.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/list.exp | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3c1b328..a137347 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-03-26 Fred Fish <fnf@redhat.com> + + * gdb.base/list.exp: Revert the change made yesterday and add note + about why we don't list the default lines for remote targets. + 2002-03-25 Michael Snyder <msnyder@redhat.com> * gdb.base/help.exp: Clean up unnecessary wild cards in regexps. diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp index 315bf0a..9a4169c 100644 --- a/gdb/testsuite/gdb.base/list.exp +++ b/gdb/testsuite/gdb.base/list.exp @@ -93,9 +93,16 @@ proc test_listsize {} { gdb_test "show listsize" "Number of source lines gdb will list by default is 10.*" "show default list size" # Show the default lines + # Note that remote targets that have debugging info for _start available will + # list the lines there instead of main, so we skip this test for remote targets. # The second case is for optimized code, it is still correct. - gdb_test "list" "(1\[ \t\]+#include \"list0.h\".*10\[ \t\]+x = 0;|2.*11\[ \t\]+foo .x\[+)\]+;)" "list default lines around main" + if [is_remote target] { + runto_main; + unsupported "list default lines around main"; + } else { + gdb_test "list" "(1\[ \t\]+#include \"list0.h\".*10\[ \t\]+x = 0;|2.*11\[ \t\]+foo .x\[+)\]+;)" "list default lines around main" + } # Ensure we can limit printouts to one line |