aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/charset.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-07-20 22:06:59 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-07-20 22:06:59 +0000
commit51d7d80300853eac20339390e1ae05de71e7e1e3 (patch)
treee9e79f30e0c1bb648c5b12d3d21bf0bbfed3406e /gdb/testsuite/gdb.base/charset.exp
parent0af8aa50ec8f74937fc4897b6bd737ca5fc227e2 (diff)
downloadgdb-51d7d80300853eac20339390e1ae05de71e7e1e3.zip
gdb-51d7d80300853eac20339390e1ae05de71e7e1e3.tar.gz
gdb-51d7d80300853eac20339390e1ae05de71e7e1e3.tar.bz2
gdb/testsuite/
* gdb.base/charset-malloc.c: New file. * gdb.base/charset.c (malloc_stub): New prototype. (main): Call it instead of malloc itself. * gdb.base/charset.exp: Use only prepare_for_testing. (binfile): Remove the variable.
Diffstat (limited to 'gdb/testsuite/gdb.base/charset.exp')
-rw-r--r--gdb/testsuite/gdb.base/charset.exp11
1 files changed, 2 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.base/charset.exp b/gdb/testsuite/gdb.base/charset.exp
index 58418be..0639117 100644
--- a/gdb/testsuite/gdb.base/charset.exp
+++ b/gdb/testsuite/gdb.base/charset.exp
@@ -27,18 +27,11 @@ if $tracelevel then {
set testfile "charset"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "couldn't compile ${srcdir}/${subdir}/${srcfile}"
+set srcmallocfile ${testfile}-malloc.c
+if { [prepare_for_testing ${testfile}.exp ${testfile} [list $srcfile $srcmallocfile]] } {
return -1
}
-# Start with a fresh gdb.
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
# Parse the output from a `show charset' command. Return the host
# and target charset as a two-element list.
proc parse_show_charset_output {testname} {