diff options
author | Ben Elliston <bje@gnu.org> | 2010-01-21 10:20:34 +1100 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2010-01-21 10:20:34 +1100 |
commit | b789c06896038758715bc77d2e3ed4236eb7b64e (patch) | |
tree | 07b13b37e32a6a284c3383eb376b5d7d2f8f5f26 | |
parent | 8d26e42c684dc9091a6b62fc06e249ebb879fe13 (diff) | |
download | dejagnu-b789c06896038758715bc77d2e3ed4236eb7b64e.tar.gz dejagnu-b789c06896038758715bc77d2e3ed4236eb7b64e.tar.bz2 dejagnu-b789c06896038758715bc77d2e3ed4236eb7b64e.zip |
* config/gdb-comm.exp (gdb_comm_load): Set breakpoints after load.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | config/gdb-comm.exp | 20 |
2 files changed, 14 insertions, 10 deletions
@@ -1,3 +1,7 @@ +2010-01-21 Jie Zhang <jie.zhang@analog.com> + + * config/gdb-comm.exp (gdb_comm_load): Set breakpoints after load. + 2010-01-15 Anthony Green <green@moxielogic.com> * baseboards/moxie-sim.exp: New baseboard. 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. |