aboutsummaryrefslogtreecommitdiff
path: root/binutils/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 /binutils/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 'binutils/testsuite/config')
-rw-r--r--binutils/testsuite/config/default.exp10
1 files changed, 9 insertions, 1 deletions
diff --git a/binutils/testsuite/config/default.exp b/binutils/testsuite/config/default.exp
index 01fd8cc..c5595a1 100644
--- a/binutils/testsuite/config/default.exp
+++ b/binutils/testsuite/config/default.exp
@@ -123,5 +123,13 @@ proc binutils_run { prog progargs } {
# assemble a file
#
proc binutils_assemble { source object } {
- default_binutils_assemble $source $object
+ default_binutils_assemble_flags $source $object ""
+}
+
+#
+# binutils_assemble_flags
+# assemble a file
+#
+proc binutils_assemble_flags { source object asflags } {
+ default_binutils_assemble_flags $source $object $asflags
}