diff options
Diffstat (limited to 'gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp')
-rw-r--r-- | gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp b/gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp index 6dc5e38..fab1463 100644 --- a/gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp +++ b/gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp @@ -89,19 +89,12 @@ proc test_reconnect { } { } } - gdb_exit + global binfile - if [mi_gdb_start] { + if {[mi_clean_restart $binfile]} { return } - global srcdir - global subdir - global binfile - - mi_gdb_reinitialize_dir $srcdir/$subdir - mi_gdb_load ${binfile} - global gdbserver_protocol global gdbserver_gdbport @@ -162,19 +155,13 @@ proc test_pending_resolved { } { with_test_prefix "pending resolved" { global decimal hex global executable - global srcdir - global subdir global binfile global lib_sl1 lib_sl2 global mi_gdb_prompt - gdb_exit - if [mi_gdb_start] { + if {[mi_clean_restart $binfile]} { return } - - mi_gdb_reinitialize_dir $srcdir/$subdir - mi_gdb_load ${binfile} mi_load_shlibs $lib_sl1 $lib_sl2 # Create a pending tracepoint on pendfunc2 |