summaryrefslogtreecommitdiffstats
path: root/gdb/testsuite/gdb.base/list.exp
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2002-03-26 14:54:27 +0000
committerFred Fish <fnf@specifix.com>2002-03-26 14:54:27 +0000
commitd7679631e88e095c0ee4a7df9e6153ccc205faca (patch)
tree2937bb0b7373a1575352b983c828819045bc41e6 /gdb/testsuite/gdb.base/list.exp
parentb91afed73bdfb757fef53f36d6a7ffe8357fafe0 (diff)
downloadppe42-binutils-d7679631e88e095c0ee4a7df9e6153ccc205faca.tar.gz
ppe42-binutils-d7679631e88e095c0ee4a7df9e6153ccc205faca.zip
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/list.exp')
-rw-r--r--gdb/testsuite/gdb.base/list.exp9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp
index 315bf0a998..9a4169c297 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
OpenPOWER on IntegriCloud