summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2010-01-21 10:20:34 +1100
committerBen Elliston <bje@gnu.org>2010-01-21 10:20:34 +1100
commitb789c06896038758715bc77d2e3ed4236eb7b64e (patch)
tree07b13b37e32a6a284c3383eb376b5d7d2f8f5f26 /config
parent8d26e42c684dc9091a6b62fc06e249ebb879fe13 (diff)
downloaddejagnu-b789c06896038758715bc77d2e3ed4236eb7b64e.tar.gz
dejagnu-b789c06896038758715bc77d2e3ed4236eb7b64e.tar.bz2
dejagnu-b789c06896038758715bc77d2e3ed4236eb7b64e.zip
* config/gdb-comm.exp (gdb_comm_load): Set breakpoints after load.
Diffstat (limited to 'config')
-rw-r--r--config/gdb-comm.exp20
1 files changed, 10 insertions, 10 deletions
diff --git a/config/gdb-comm.exp b/config/gdb-comm.exp
index affa61a..f8a677f 100644
--- a/config/gdb-comm.exp
+++ b/config/gdb-comm.exp
@@ -308,16 +308,6 @@ proc gdb_comm_load { dest prog args } {
}
}
- # Now set up breakpoints in exit, _exit, and abort. These
- # are used to determine if a c-torture test passed or failed. More
- # work would be necessary for things like the g++ testsuite which
- # use printf to indicate pass/fail status.
-
- if { [gdb_comm_add_breakpoint _exit] != "" } {
- gdb_comm_add_breakpoint exit
- }
- gdb_comm_add_breakpoint abort
-
set protocol [board_info $dest gdb_protocol]
if {[board_info $dest exists gdb_serial]} {
set targetname [board_info $dest gdb_serial]
@@ -405,6 +395,16 @@ proc gdb_comm_load { dest prog args } {
}
}
+ # Now set up breakpoints in exit, _exit, and abort. These
+ # are used to determine if a c-torture test passed or failed. More
+ # work would be necessary for things like the g++ testsuite which
+ # use printf to indicate pass/fail status.
+
+ if { [gdb_comm_add_breakpoint _exit] != "" } {
+ gdb_comm_add_breakpoint exit
+ }
+ gdb_comm_add_breakpoint abort
+
set output ""
# Now start up the program and look for our magic breakpoints.