aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-07-14 19:46:01 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-07-14 19:46:01 +0000
commit368886ac463c9e75337621a29292de8ff5744ce6 (patch)
tree4cc193fa9c72affe05c2b03908b8ec08e426d199 /gas/testsuite/config
parent3cbaedfff7a843d64792766c0322ea3a66ef6cb2 (diff)
downloadgdb-368886ac463c9e75337621a29292de8ff5744ce6.zip
gdb-368886ac463c9e75337621a29292de8ff5744ce6.tar.gz
gdb-368886ac463c9e75337621a29292de8ff5744ce6.tar.bz2
Add addr2line, objcopy and strip tests for compressed debug sections.
binutils/testsuite/ 2010-07-14 H.J. Lu <hongjiu.lu@intel.com> * config/default.exp (binutils_assemble): Use default_binutils_assemble_flags. (binutils_assemble_flags): New. * lib/utils-lib.exp (default_binutils_assemble): Renamed to ... (default_binutils_assemble_flags): This. Add asflags and pass it to target_assemble. (run_dump_test): Support assembler flags. * binutils-all/i386/compressed-1.s: New. * binutils-all/i386/compressed-1a.d: Likewise. * binutils-all/i386/compressed-1b.d: Likewise. * binutils-all/i386/compressed-1c.d: Likewise. * binutils-all/i386/i386.exp: Likewise. * binutils-all/x86-64/compressed-1.s: Likewise. * binutils-all/x86-64/compressed-1a.d: Likewise. * binutils-all/x86-64/compressed-1b.d: Likewise. * binutils-all/x86-64/compressed-1c.d: Likewise. * binutils-all/x86-64/x86-64.exp: Likewise. gas/testsuite/ 2010-07-14 H.J. Lu <hongjiu.lu@intel.com> * config/default.exp (ADDR2LINE): New. (ADDR2LINEFLAGS): Likewise. * gas/i386/i386.exp: Run dw2-compress-2 and x86-64-dw2-compress-2. * gas/i386/dw2-compress-2.d: New. * gas/i386/dw2-compress-2.s: Likewise. * gas/i386/x86-64-dw2-compress-2.d: Likewise. * gas/i386/x86-64-dw2-compress-2.s: Likewise. * lib/gas-defs.exp (run_dump_test): Support addr2line as dump program. (slurp_options): Allow numbers in options.
Diffstat (limited to 'gas/testsuite/config')
-rw-r--r--gas/testsuite/config/default.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/testsuite/config/default.exp b/gas/testsuite/config/default.exp
index ef4a531..044dba1 100644
--- a/gas/testsuite/config/default.exp
+++ b/gas/testsuite/config/default.exp
@@ -46,4 +46,12 @@ if ![info exists READELFFLAGS] then {
set READELFFLAGS {}
}
+if ![info exists ADDR2LINE] then {
+ set ADDR2LINE [findfile $base_dir/../../binutils/addr2line]
+}
+
+if ![info exists ADDR2LINEFLAGS] then {
+ set ADDR2LINEFLAGS {}
+}
+
gas_init