2002-02-14 Daniel Jacobowitz <drow@mvista.com>
authorDaniel Jacobowitz <drow@false.org>
Thu, 14 Feb 2002 06:25:19 +0000 (06:25 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 14 Feb 2002 06:25:19 +0000 (06:25 +0000)
        * gdb.base/a2-run.exp: Check for a remote target properly.
        * gdb.base/annota1.exp: Likewise.
        * gdb.base/list.exp: Likewise.
        * gdb.base/reread.exp: Likewise.
        * gdb.base/scope.exp: Likewise.
        * gdb.base/shlib-call.exp: Likewise.
        * gdb.base/term.exp: Likewise.
        * gdb.c++/annota2.exp: Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/a2-run.exp
gdb/testsuite/gdb.base/annota1.exp
gdb/testsuite/gdb.base/list.exp
gdb/testsuite/gdb.base/reread.exp
gdb/testsuite/gdb.base/scope.exp
gdb/testsuite/gdb.base/shlib-call.exp
gdb/testsuite/gdb.base/term.exp
gdb/testsuite/gdb.c++/annota2.exp

index 869da449de5b1290134daffa38bf11544a5c671d..16966783fd730028aa839c1a01fbe41d101f1057 100644 (file)
@@ -1,3 +1,14 @@
+2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
+
+       * gdb.base/a2-run.exp: Check for a remote target properly.
+       * gdb.base/annota1.exp: Likewise.
+       * gdb.base/list.exp: Likewise.
+       * gdb.base/reread.exp: Likewise.
+       * gdb.base/scope.exp: Likewise.
+       * gdb.base/shlib-call.exp: Likewise.
+       * gdb.base/term.exp: Likewise.
+       * gdb.c++/annota2.exp: Likewise.
+
 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
 
        * gdb.base/watchpoint.exp: Restore previous timeout at end of test.
index 2fc7ff086a3df8ad1f65a97321bcf65ef02793ae..f822f2491a52f4af7ba724eda559b17a17edb0f7 100644 (file)
@@ -232,7 +232,7 @@ if [istarget "*-*-vxworks*"] then {
 
 # GOAL: Test that shell is being used with "run".  For remote debugging
 # targets, there is no guarantee that a "shell" (whatever that is) is used.
-if [isnative] then {
+if ![is_remote target] then {
     send_gdb "run `echo 8`\n"
     gdb_expect {
        -re "Starting program.*40320.*$gdb_prompt $" {
index 3402855c7a61b3c2b2da9082c371bbeb52fce267..bdb5646fffefe330bf62908edb26d7c33f9b2e70 100644 (file)
@@ -30,7 +30,7 @@ if $tracelevel then {
 # work for remote targets too) because of the different prompt we get
 # when using annotation level 2.
 #
-if ![isnative] then {
+if [is_remote target] then {
     return 0
 }
 
index 8c114e87706a5d71ce6847d49660db6f6a3c025b..ddd1e36bcd32795f7fbd21156fc4ea772b63abaf 100644 (file)
@@ -95,7 +95,7 @@ proc test_listsize {} {
     # Show the default lines
     # The second case is for optimized code, it is still correct.
     
-    if ![isnative] {
+    if [is_remote target] {
        runto_main;
        unsupported "list default lines around main";
     } else {
index f0650c4c01420d2b2bfc8b8d7da972db9bd5a301..5e17e11df7b909bcff0d9ab29c980874339467ab 100644 (file)
@@ -100,7 +100,7 @@ gdb_test "shell touch ${binfile}" "" ""
 
 set prms_id 0
 
-if ![isnative] {
+if [is_remote target] {
     unsupported "run to foo() second time ";
 } else {
     gdb_run_cmd
@@ -124,7 +124,7 @@ if ![isnative] {
 ### Second pass: verify that GDB checks the executable file's
 ### timestamp when the program is *restarted*, not just when it exits.
 
-if ![isnative] {
+if [is_remote target] {
     unsupported "second pass: GDB should check for changes before running"
 } else {
 
index 69bd84b11b69b64ba32f1a4edbc31987dacef151..1765a446499512390ff2a82e7ced0ea7bb23c5f1 100644 (file)
@@ -559,7 +559,7 @@ gdb_test "print 'scope0.c'::filelocal_ro" "= 201"
 # is responsible for clearing bss and that hasnt' happened yet.
 #
 # This is a problem for all non-native targets. -- manson
-if ![isnative] {
+if [is_remote target] {
     unsupported "print 'scope0.c'::filelocal_bss before run"
 } else {
     gdb_test "print 'scope0.c'::filelocal_bss" "= 0" \
index c67c81695f1f47ef1db9b44d967ce7d29e3d158e..d5336f46b788ddf5c7ad7d94e894a58f37eaf475 100644 (file)
@@ -268,14 +268,16 @@ gdb_test "break shr1" "Breakpoint 1.*" "set bp in shared library"
 
 # FIXME: should not send "run" explicitly.  Non-portable.
 
-gdb_test "run" "Starting program:.*Breakpoint 1,.*" \
+if ![is_remote target] {
+  gdb_test "run" "Starting program:.*Breakpoint 1,.*" \
        "run to bp in shared library"
 
-gdb_test "cont" ".*Program exited normally..*"
+  gdb_test "cont" ".*Program exited normally..*"
 
-gdb_test "run" "Starting program:.*Breakpoint 1,.*" \
+  gdb_test "run" "Starting program:.*Breakpoint 1,.*" \
        "re-run to bp in shared library (PR's 16495, 18213)"
 
-gdb_test "cont" ".*Program exited normally..*"
+  gdb_test "cont" ".*Program exited normally..*"
+}
 
 return 0
index 53ef52ee7c7b74b773a6f8ee87a3e09233102fcb..1a6453112976e54a9f2d859fb259024aba014b90 100644 (file)
@@ -24,8 +24,8 @@ if $tracelevel then {
     strace $tracelevel
 }
 
-# This only works for native, I think.
-if ![isnative] then {
+# Don't try this for remote targets.
+if [is_remote target] then {
     continue
 }
 
index 6f9a3eadb0782ae207c5a507fb931ffed8abc521..a134709378e3386ecf6578ddf7aadcae061e7a0c 100644 (file)
@@ -46,7 +46,7 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
 # work for remote targets too) because of the different prompt we get
 # when using annotation level 2.
 #
-if ![isnative] then {
+if [is_remote target] then {
     return 0
 }