aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/list.exp
diff options
context:
space:
mode:
authorIain Sandoe <iain@codesourcery.com>2012-06-15 14:43:00 +0000
committerIain Sandoe <iain@codesourcery.com>2012-06-15 14:43:00 +0000
commit8e09ad05eda21f6772d6bcca1eb8b42e5d77be03 (patch)
tree23c372aad404cddd73255b102716fa80110cf694 /gdb/testsuite/gdb.base/list.exp
parentd6f0502793f0fedb544a3adee72f354c41353136 (diff)
downloadgdb-8e09ad05eda21f6772d6bcca1eb8b42e5d77be03.zip
gdb-8e09ad05eda21f6772d6bcca1eb8b42e5d77be03.tar.gz
gdb-8e09ad05eda21f6772d6bcca1eb8b42e5d77be03.tar.bz2
gdb/testsuite:
* gdb.base/list.exp (test_listsize): Remove $use_gdb_stub special case. (top level): Use gdb_file_cmd instead of gdb_load.
Diffstat (limited to 'gdb/testsuite/gdb.base/list.exp')
-rw-r--r--gdb/testsuite/gdb.base/list.exp16
1 files changed, 4 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp
index d1358c3..5814375 100644
--- a/gdb/testsuite/gdb.base/list.exp
+++ b/gdb/testsuite/gdb.base/list.exp
@@ -77,7 +77,7 @@ proc set_listsize { arg } {
#
proc test_listsize {} {
- global gdb_prompt use_gdb_stub
+ global gdb_prompt
global hp_cc_compiler
global hp_aCC_compiler
@@ -86,16 +86,8 @@ 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.
-
- if $use_gdb_stub {
- runto_main;
- unsupported "list default lines around main";
- } else {
- gdb_test "list" "(1\[ \t\]+#include \"list0.h\".*7\[ \t\]+x = 0;\r\n.*10\[ \t\]+foo .x\[+)\]+;)" "list default lines around main"
- }
+
+ gdb_test "list" "(1\[ \t\]+#include \"list0.h\".*7\[ \t\]+x = 0;\r\n.*10\[ \t\]+foo .x\[+)\]+;)" "list default lines around main"
# Ensure we can limit printouts to one line
@@ -518,7 +510,7 @@ proc test_forward_search {} {
gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+gdb_file_cmd ${binfile}
gdb_test_no_output "set width 0"