* 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-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.
# 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 $" {
# 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
}
# 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 {
set prms_id 0
-if ![isnative] {
+if [is_remote target] {
unsupported "run to foo() second time ";
} else {
gdb_run_cmd
### 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 {
# 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" \
# 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
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
}
# 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
}