+2009-06-09 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdb.mi/mi-async.exp, gdb.mi/mi-basics.exp,
+ gdb.mi/mi-break.exp, gdb.mi/mi-cli.exp,
+ gdb.mi/mi-disassemble.exp, gdb.mi/mi-eval.exp,
+ gdb.mi/mi-file-transfer.exp, gdb.mi/mi-file.exp,
+ gdb.mi/mi-regs.exp, gdb.mi/mi-return.exp,
+ gdb.mi/mi-simplerun.exp, gdb.mi/mi-stepi.exp,
+ gdb.mi/mi-var-block.exp, gdb.mi/mi-var-cmd.exp,
+ gdb.mi/mi-var-display.exp, gdb.mi/mi-var-invalidate.exp,
+ gdb.mi/mi-watch.exp, gdb.mi/mi2-basics.exp,
+ gdb.mi/mi2-break.exp, gdb.mi/mi2-cli.exp,
+ gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-eval.exp,
+ gdb.mi/mi2-file.exp, gdb.mi/mi2-regs.exp,
+ gdb.mi/mi2-return.exp, gdb.mi/mi2-simplerun.exp,
+ gdb.mi/mi2-stepi.exp, gdb.mi/mi2-var-block.exp,
+ gdb.mi/mi2-var-child.exp, gdb.mi/mi2-var-cmd.exp,
+ gdb.mi/mi2-var-display.exp, gdb.mi/mi2-watch.exp,
+ gdb.server/ext-run.exp, gdb.server/file-transfer.exp,
+ gdb.server/server-mon.exp, gdb.server/server-run.exp,
+ gdb.trace/actions.exp, gdb.trace/backtrace.exp,
+ gdb.trace/deltrace.exp, gdb.trace/infotrace.exp,
+ gdb.trace/packetlen.exp, gdb.trace/passc-dyn.exp,
+ gdb.trace/passcount.exp, gdb.trace/report.exp,
+ gdb.trace/save-trace.exp, gdb.trace/tfind.exp,
+ gdb.trace/tracecmd.exp, gdb.trace/while-dyn.exp,
+ gdb.trace/while-stepping.exp: Use a unique name for the compiled
+ executable.
+
2009-06-07 Pedro Alves <pedro@codesourcery.com>
* gdb.threads/manythreads.c (main): Check if PTHREAD_STACK_MIN is
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-async
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-async.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-basics
set escapedobjdir [string_to_regexp ${objdir}]
set envirodir [string_to_regexp ${objdir}/${subdir}]
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-break
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-break.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-cli
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-cli.exp
return -1
# {(=.*)+\^done} \
# "-interpreter-exec console \"file \$binfile\""
mi_gdb_test "-interpreter-exec console \"file $binfile\"" \
- {~"Reading symbols from .*basics...".*done} \
+ {~"Reading symbols from .*mi-cli...".*done} \
"-interpreter-exec console \"file \$binfile\""
mi_run_to_main
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-disassemble
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-disassemble.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-eval
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-eval.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-file-transfer
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested mi-file-transfer.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-file
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-file.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-regs
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-regs.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-return
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-return.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-simplerun
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-simplerun.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-stepi
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-stepi.exp
return -1
set testfile "var-cmd"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-var-block
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-var-block.exp
return -1
set testfile "var-cmd"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-var-cmd
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-var-cmd.exp
return -1
set testfile "var-cmd"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-var-display
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-var-display.exp
return -1
set testfile "var-cmd"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-var-invalidate
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-var-invalidate.exp
return -1
}
# Just change the output binary.
-set binfile_bis ${objdir}/${subdir}/${testfile}_bis
+set binfile_bis ${objdir}/${subdir}/mi-var-invalidate_bis
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_bis}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-var-invalidate.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi-watch
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi-watch.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-basics
set escapedobjdir [string_to_regexp ${objdir}]
set envirodir [string_to_regexp ${objdir}/${subdir}]
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-break
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-break.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-cli
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-cli.exp
return -1
# {(=.*)+\^done} \
# "-interpreter-exec console \"file \$binfile\""
mi_gdb_test "-interpreter-exec console \"file $binfile\"" \
- {~"Reading symbols from .*basics...".*\^done} \
+ {~"Reading symbols from .*mi2-cli...".*\^done} \
"-interpreter-exec console \"file \$binfile\""
mi_run_to_main
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-disassemble
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-disassemble.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-eval
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-eval.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-file
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-file.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-regs
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-regs.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-return
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-return.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-simplerun
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-simplerun.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-stepi
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-stepi.exp
return -1
set testfile "var-cmd"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-var-block
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-var-block.exp
return -1
set testfile "var-cmd"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-var-child
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-var-child.exp
return -1
set testfile "var-cmd"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-var-cmd
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-var-cmd.exp
return -1
set testfile "var-cmd"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-var-display
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-var-display.exp
return -1
set testfile "basics"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/mi2-watch
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
untested mi2-watch.exp
return -1
set testfile "server"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/ext-run
if { [skip_gdbserver_tests] } {
return 0
set testfile "server"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}${EXEEXT}
+set binfile ${objdir}/${subdir}/file-transfer${EXEEXT}
if { [skip_gdbserver_tests] } {
return 0
set testfile "server"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/server-mon
if { [skip_gdbserver_tests] } {
return 0
set testfile "server"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/server-run
if { [skip_gdbserver_tests] } {
return 0
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/actions
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested actions.exp
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/backtrace
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested backtrace.exp
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/deltrace
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested deltrace.exp
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/infotrace
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested infotrace.exp
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/packetlen
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested packetlen.exp
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/passc-dyn
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested passc-dyn.exp
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/passcount
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested passcount.exp
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/report
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested report.exp
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/save-trace
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested save-trace.exp
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/tfind
if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile" \
executable {debug nowarnings}] != "" } {
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/tracecmd
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested tracecmd.exp
} else {
set testfile "actions"
set srcfile $testfile.c
- set binfile $objdir/$subdir/$testfile
+ set binfile $objdir/$subdir/while-dyn
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested while-dyn.exp
} else {
set testfile "actions"
set srcfile ${testfile}.c
- set binfile ${objdir}/${subdir}/${testfile}
+ set binfile ${objdir}/${subdir}/while-stepping
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $binfile \
executable {debug nowarnings}] != "" } {
untested while-stepping.exp