aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-01-28 15:15:32 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-01-28 15:15:32 +0000
commit2dc4cec1f343cc27605be560098badd0e90137a4 (patch)
treeffc5eaef8784b25c9077b3b1c79b602c8198943e /gas/testsuite
parent6e73d59506332fd0325445070952950f24b366a9 (diff)
downloadgdb-2dc4cec1f343cc27605be560098badd0e90137a4.zip
gdb-2dc4cec1f343cc27605be560098badd0e90137a4.tar.gz
gdb-2dc4cec1f343cc27605be560098badd0e90137a4.tar.bz2
binutils/
2008-01-28 H.J. Lu <hongjiu.lu@intel.com> * dwarf.c: Include "elf/common.h". (eh_addr_size): Changed to int. (dwarf_regnames_i386): New. (dwarf_regnames_x86_64): Likewise. (dwarf_regnames): Likewise. (dwarf_regnames_count): Likewise. (init_dwarf_regnames): Likewise. (regname): Likewise. (frame_display_row): Properly support different address size. Call regname to get register name. (display_debug_frames): Call regname to get register name. Display DW_CFA_def_cfa_register as DW_CFA_def_cfa_register instead of DW_CFA_def_cfa_reg. * dwarf.h (init_dwarf_regnames): New. * objdump.c: Include "elf-bfd.h". (dump_dwarf): Call init_dwarf_regnames on ELF input. * readelf.c (guess_is_rela): Change argument to int. (parse_args): Remove the undocumented upper case options for -wX. (process_file_header): Call init_dwarf_regnames if do_dwarf_register is true. gas/testsuite/ 2008-01-28 H.J. Lu <hongjiu.lu@intel.com> * gas/cfi/cfi-alpha-1.d: Replace DW_CFA_def_cfa_reg with DW_CFA_def_cfa_register. * gas/cfi/cfi-alpha-3.d: Likewise. * gas/cfi/cfi-hppa-1.d: Likewise. * gas/cfi/cfi-i386.d: Likewise. * gas/cfi/cfi-m68k.d: Likewise. * gas/cfi/cfi-mips-1.d: Likewise. * gas/cfi/cfi-sh-1.d: Likewise. * gas/cfi/cfi-sparc-1.d: Likewise. * gas/cfi/cfi-sparc64-1.d: Likewise. * gas/cfi/cfi-x86_64.d: Likewise. * gas/cfi/cfi-common-1.d: Updated for i386/x86-64 register names. * gas/cfi/cfi-common-2.d: Likewise. * gas/cfi/cfi-common-5.d: Likewise. * gas/cfi/cfi-i386.d: Likewise. * gas/cfi/cfi-x86_64.d: Likewise. ld/testsuite/ 2008-01-28 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/eh1.d: Replace DW_CFA_def_cfa_reg with DW_CFA_def_cfa_register. Updated for i386/x86-64 register names. * ld-elf/eh2.d: Likewise. * ld-elf/eh3.d: Likewise. * ld-elf/eh4.d: Likewise. * ld-elf/eh5.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog21
-rw-r--r--gas/testsuite/gas/cfi/cfi-alpha-1.d2
-rw-r--r--gas/testsuite/gas/cfi/cfi-alpha-3.d4
-rw-r--r--gas/testsuite/gas/cfi/cfi-common-1.d6
-rw-r--r--gas/testsuite/gas/cfi/cfi-common-2.d2
-rw-r--r--gas/testsuite/gas/cfi/cfi-common-5.d2
-rw-r--r--gas/testsuite/gas/cfi/cfi-hppa-1.d8
-rw-r--r--gas/testsuite/gas/cfi/cfi-i386.d14
-rw-r--r--gas/testsuite/gas/cfi/cfi-m68k.d4
-rw-r--r--gas/testsuite/gas/cfi/cfi-mips-1.d2
-rw-r--r--gas/testsuite/gas/cfi/cfi-sh-1.d2
-rw-r--r--gas/testsuite/gas/cfi/cfi-sparc-1.d2
-rw-r--r--gas/testsuite/gas/cfi/cfi-sparc64-1.d2
-rw-r--r--gas/testsuite/gas/cfi/cfi-x86_64.d28
14 files changed, 60 insertions, 39 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index c13d97b..519931d 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,24 @@
+2008-01-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/cfi/cfi-alpha-1.d: Replace DW_CFA_def_cfa_reg with
+ DW_CFA_def_cfa_register.
+ * gas/cfi/cfi-alpha-3.d: Likewise.
+ * gas/cfi/cfi-hppa-1.d: Likewise.
+ * gas/cfi/cfi-i386.d: Likewise.
+ * gas/cfi/cfi-m68k.d: Likewise.
+ * gas/cfi/cfi-mips-1.d: Likewise.
+ * gas/cfi/cfi-sh-1.d: Likewise.
+ * gas/cfi/cfi-sparc-1.d: Likewise.
+ * gas/cfi/cfi-sparc64-1.d: Likewise.
+ * gas/cfi/cfi-x86_64.d: Likewise.
+
+ * gas/cfi/cfi-common-1.d: Updated for i386/x86-64 register
+ names.
+ * gas/cfi/cfi-common-2.d: Likewise.
+ * gas/cfi/cfi-common-5.d: Likewise.
+ * gas/cfi/cfi-i386.d: Likewise.
+ * gas/cfi/cfi-x86_64.d: Likewise.
+
2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/x86-64-sib.s: Add tests for r12.
diff --git a/gas/testsuite/gas/cfi/cfi-alpha-1.d b/gas/testsuite/gas/cfi/cfi-alpha-1.d
index 4b3a340..5703c9c 100644
--- a/gas/testsuite/gas/cfi/cfi-alpha-1.d
+++ b/gas/testsuite/gas/cfi/cfi-alpha-1.d
@@ -10,7 +10,7 @@ The section .eh_frame contains:
Return address column: 26
Augmentation data: 1b
- DW_CFA_def_cfa_reg: r30
+ DW_CFA_def_cfa_register: r30
DW_CFA_nop
00000014 00000020 00000018 FDE cie=00000000 pc=00000000..00000034
diff --git a/gas/testsuite/gas/cfi/cfi-alpha-3.d b/gas/testsuite/gas/cfi/cfi-alpha-3.d
index f7bb8f0..61ab78b 100644
--- a/gas/testsuite/gas/cfi/cfi-alpha-3.d
+++ b/gas/testsuite/gas/cfi/cfi-alpha-3.d
@@ -10,7 +10,7 @@ The section .eh_frame contains:
Return address column: 26
Augmentation data: 1b
- DW_CFA_def_cfa_reg: r30
+ DW_CFA_def_cfa_register: r30
DW_CFA_nop
00000014 00000028 00000018 FDE cie=00000000 pc=00000000..00000040
@@ -25,7 +25,7 @@ The section .eh_frame contains:
DW_CFA_advance_loc: 4 to 00000014
DW_CFA_offset: r34 at cfa-8
DW_CFA_advance_loc: 4 to 00000018
- DW_CFA_def_cfa_reg: r15
+ DW_CFA_def_cfa_register: r15
DW_CFA_advance_loc: 36 to 0000003c
DW_CFA_def_cfa: r30 ofs 0
DW_CFA_nop
diff --git a/gas/testsuite/gas/cfi/cfi-common-1.d b/gas/testsuite/gas/cfi/cfi-common-1.d
index 9f5d993..1a5ee08 100644
--- a/gas/testsuite/gas/cfi/cfi-common-1.d
+++ b/gas/testsuite/gas/cfi/cfi-common-1.d
@@ -16,8 +16,8 @@ The section .eh_frame contains:
00000014 00000018 00000018 FDE cie=00000000 pc=.*
DW_CFA_advance_loc: 4 to .*
- DW_CFA_def_cfa: r0 ofs 16
- DW_CFA_offset: r1 at cfa-8
+ DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16
+ DW_CFA_offset: r1( \((rdx|ecx)\)|) at cfa-8
DW_CFA_advance_loc: 4 to .*
DW_CFA_def_cfa_offset: 32
- DW_CFA_offset: r2 at cfa-24
+ DW_CFA_offset: r2( \((rcx|edx)\)|) at cfa-24
diff --git a/gas/testsuite/gas/cfi/cfi-common-2.d b/gas/testsuite/gas/cfi/cfi-common-2.d
index a54e542..e929f87 100644
--- a/gas/testsuite/gas/cfi/cfi-common-2.d
+++ b/gas/testsuite/gas/cfi/cfi-common-2.d
@@ -12,7 +12,7 @@ The section .eh_frame contains:
#...
00000014 000000[12][c0] 00000018 FDE cie=00000000 pc=.*
DW_CFA_advance_loc: 4 to .*
- DW_CFA_def_cfa: r0 ofs 16
+ DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16
DW_CFA_advance_loc: 4 to .*
DW_CFA_remember_state
DW_CFA_advance_loc: 4 to .*
diff --git a/gas/testsuite/gas/cfi/cfi-common-5.d b/gas/testsuite/gas/cfi/cfi-common-5.d
index fed50c5..ba21e2f 100644
--- a/gas/testsuite/gas/cfi/cfi-common-5.d
+++ b/gas/testsuite/gas/cfi/cfi-common-5.d
@@ -18,7 +18,7 @@ The section .eh_frame contains:
#...
0000002c 0000001[48] 00000030 FDE cie=00000000 pc=.*
DW_CFA_advance_loc: 4 to .*
- DW_CFA_def_cfa: r0 ofs 16
+ DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16
DW_CFA_advance_loc: 4 to .*
DW_CFA_def_cfa_offset: 0
#pass
diff --git a/gas/testsuite/gas/cfi/cfi-hppa-1.d b/gas/testsuite/gas/cfi/cfi-hppa-1.d
index 7b06d55..29a72ad 100644
--- a/gas/testsuite/gas/cfi/cfi-hppa-1.d
+++ b/gas/testsuite/gas/cfi/cfi-hppa-1.d
@@ -14,19 +14,19 @@ The section .eh_frame contains:
00000014 00000018 00000018 FDE cie=00000000 pc=00000000..00000018
DW_CFA_advance_loc: 8 to 00000008
- DW_CFA_def_cfa_reg: r3
+ DW_CFA_def_cfa_register: r3
DW_CFA_advance_loc: 4 to 0000000c
DW_CFA_def_cfa_offset: 4660
DW_CFA_advance_loc: 8 to 00000014
- DW_CFA_def_cfa_reg: r30
+ DW_CFA_def_cfa_register: r30
DW_CFA_nop
00000030 00000018 00000034 FDE cie=00000000 pc=00000018..00000040
DW_CFA_advance_loc: 12 to 00000024
- DW_CFA_def_cfa_reg: r3
+ DW_CFA_def_cfa_register: r3
DW_CFA_offset: r2 at cfa-24
DW_CFA_advance_loc: 24 to 0000003c
- DW_CFA_def_cfa_reg: r30
+ DW_CFA_def_cfa_register: r30
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
diff --git a/gas/testsuite/gas/cfi/cfi-i386.d b/gas/testsuite/gas/cfi/cfi-i386.d
index ff74780..ac085e9 100644
--- a/gas/testsuite/gas/cfi/cfi-i386.d
+++ b/gas/testsuite/gas/cfi/cfi-i386.d
@@ -10,8 +10,8 @@ The section .eh_frame contains:
Return address column: 8
Augmentation data: 1b
- DW_CFA_def_cfa: r4 ofs 4
- DW_CFA_offset: r8 at cfa-4
+ DW_CFA_def_cfa: r4 \(esp\) ofs 4
+ DW_CFA_offset: r8 \(eip\) at cfa-4
DW_CFA_nop
DW_CFA_nop
@@ -24,17 +24,17 @@ The section .eh_frame contains:
00000030 00000018 00000034 FDE cie=00000000 pc=00000012..0000001f
DW_CFA_advance_loc: 1 to 00000013
DW_CFA_def_cfa_offset: 8
- DW_CFA_offset: r5 at cfa-8
+ DW_CFA_offset: r5 \(ebp\) at cfa-8
DW_CFA_advance_loc: 2 to 00000015
- DW_CFA_def_cfa_reg: r5
+ DW_CFA_def_cfa_register: r5 \(ebp\)
DW_CFA_advance_loc: 9 to 0000001e
- DW_CFA_def_cfa_reg: r4
+ DW_CFA_def_cfa_register: r4 \(esp\)
0000004c 00000014 00000050 FDE cie=00000000 pc=0000001f..0000002f
DW_CFA_advance_loc: 2 to 00000021
- DW_CFA_def_cfa_reg: r3
+ DW_CFA_def_cfa_register: r3 \(ebx\)
DW_CFA_advance_loc: 13 to 0000002e
- DW_CFA_def_cfa: r4 ofs 4
+ DW_CFA_def_cfa: r4 \(esp\) ofs 4
00000064 00000010 00000068 FDE cie=00000000 pc=0000002f..00000035
DW_CFA_nop
diff --git a/gas/testsuite/gas/cfi/cfi-m68k.d b/gas/testsuite/gas/cfi/cfi-m68k.d
index 7aeb542..e6b4ec8 100644
--- a/gas/testsuite/gas/cfi/cfi-m68k.d
+++ b/gas/testsuite/gas/cfi/cfi-m68k.d
@@ -25,9 +25,9 @@ The section .eh_frame contains:
DW_CFA_advance_loc: 4 to 00000010
DW_CFA_def_cfa_offset: 8
DW_CFA_offset: r14 at cfa-8
- DW_CFA_def_cfa_reg: r14
+ DW_CFA_def_cfa_register: r14
DW_CFA_advance_loc: 6 to 00000016
- DW_CFA_def_cfa_reg: r15
+ DW_CFA_def_cfa_register: r15
DW_CFA_nop
0000004c 00000010 00000050 FDE cie=00000000 pc=00000018..0000001c
diff --git a/gas/testsuite/gas/cfi/cfi-mips-1.d b/gas/testsuite/gas/cfi/cfi-mips-1.d
index 7a8d8e8..22d74f6 100644
--- a/gas/testsuite/gas/cfi/cfi-mips-1.d
+++ b/gas/testsuite/gas/cfi/cfi-mips-1.d
@@ -10,7 +10,7 @@ The section .eh_frame contains:
Return address column: 31
Augmentation data: 0b
- DW_CFA_def_cfa_reg: r29
+ DW_CFA_def_cfa_register: r29
DW_CFA_def_cfa: r29 ofs 0
DW_CFA_nop
DW_CFA_nop
diff --git a/gas/testsuite/gas/cfi/cfi-sh-1.d b/gas/testsuite/gas/cfi/cfi-sh-1.d
index bfbfcfa..8f22243 100644
--- a/gas/testsuite/gas/cfi/cfi-sh-1.d
+++ b/gas/testsuite/gas/cfi/cfi-sh-1.d
@@ -20,7 +20,7 @@ The section .eh_frame contains:
DW_CFA_offset: r15 at cfa-4
DW_CFA_offset: r17 at cfa-8
DW_CFA_advance_loc: 6 to 0000000a
- DW_CFA_def_cfa_reg: r14
+ DW_CFA_def_cfa_register: r14
DW_CFA_advance_loc: 2 to 0000000c
DW_CFA_def_cfa_offset: 40
DW_CFA_nop
diff --git a/gas/testsuite/gas/cfi/cfi-sparc-1.d b/gas/testsuite/gas/cfi/cfi-sparc-1.d
index c9d855a..fa24c82 100644
--- a/gas/testsuite/gas/cfi/cfi-sparc-1.d
+++ b/gas/testsuite/gas/cfi/cfi-sparc-1.d
@@ -16,7 +16,7 @@ The section .eh_frame contains:
00000014 00000014 00000018 FDE cie=00000000 pc=00000000..00000024
DW_CFA_advance_loc: 4 to 00000004
- DW_CFA_def_cfa_reg: r30
+ DW_CFA_def_cfa_register: r30
DW_CFA_GNU_window_save
DW_CFA_register: r15 in r31
diff --git a/gas/testsuite/gas/cfi/cfi-sparc64-1.d b/gas/testsuite/gas/cfi/cfi-sparc64-1.d
index 6206e39..d126f50 100644
--- a/gas/testsuite/gas/cfi/cfi-sparc64-1.d
+++ b/gas/testsuite/gas/cfi/cfi-sparc64-1.d
@@ -19,7 +19,7 @@ The section .eh_frame contains:
00000018 00000014 0000001c FDE cie=00000000 pc=00000000..00000030
DW_CFA_advance_loc: 4 to 00000004
- DW_CFA_def_cfa_reg: r30
+ DW_CFA_def_cfa_register: r30
DW_CFA_GNU_window_save
DW_CFA_register: r15 in r31
diff --git a/gas/testsuite/gas/cfi/cfi-x86_64.d b/gas/testsuite/gas/cfi/cfi-x86_64.d
index 2f37a9c..9b6795c 100644
--- a/gas/testsuite/gas/cfi/cfi-x86_64.d
+++ b/gas/testsuite/gas/cfi/cfi-x86_64.d
@@ -10,8 +10,8 @@ The section .eh_frame contains:
Return address column: 16
Augmentation data: 1b
- DW_CFA_def_cfa: r7 ofs 8
- DW_CFA_offset: r16 at cfa-8
+ DW_CFA_def_cfa: r7 \(rsp\) ofs 8
+ DW_CFA_offset: r16 \(rip\) at cfa-8
DW_CFA_nop
DW_CFA_nop
@@ -24,20 +24,20 @@ The section .eh_frame contains:
00000030 0000001c 00000034 FDE cie=00000000 pc=00000014..00000022
DW_CFA_advance_loc: 1 to 00000015
DW_CFA_def_cfa_offset: 16
- DW_CFA_offset: r6 at cfa-16
+ DW_CFA_offset: r6 \(rbp\) at cfa-16
DW_CFA_advance_loc: 3 to 00000018
- DW_CFA_def_cfa_reg: r6
+ DW_CFA_def_cfa_register: r6 \(rbp\)
DW_CFA_advance_loc: 9 to 00000021
- DW_CFA_def_cfa: r7 ofs 8
+ DW_CFA_def_cfa: r7 \(rsp\) ofs 8
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
00000050 00000014 00000054 FDE cie=00000000 pc=00000022..00000035
DW_CFA_advance_loc: 3 to 00000025
- DW_CFA_def_cfa_reg: r8
+ DW_CFA_def_cfa_register: r8 \(r8\)
DW_CFA_advance_loc: 15 to 00000034
- DW_CFA_def_cfa_reg: r7
+ DW_CFA_def_cfa_register: r7 \(rsp\)
DW_CFA_nop
00000068 00000010 0000006c FDE cie=00000000 pc=00000035..0000003b
@@ -58,27 +58,27 @@ The section .eh_frame contains:
Return address column: 16
Augmentation data: 1b
- DW_CFA_def_cfa: r7 ofs 8
+ DW_CFA_def_cfa: r7 \(rsp\) ofs 8
000000a4 00000030 00000018 FDE cie=00000090 pc=0000004d..00000058
DW_CFA_advance_loc: 1 to 0000004e
DW_CFA_def_cfa_offset: 16
DW_CFA_advance_loc: 1 to 0000004f
- DW_CFA_def_cfa_reg: r8
+ DW_CFA_def_cfa_register: r8 \(r8\)
DW_CFA_advance_loc: 1 to 00000050
DW_CFA_def_cfa_offset: 4676
DW_CFA_advance_loc: 1 to 00000051
- DW_CFA_offset_extended_sf: r4 at cfa\+16
+ DW_CFA_offset_extended_sf: r4 \(rsi\) at cfa\+16
DW_CFA_advance_loc: 1 to 00000052
- DW_CFA_register: r8 in r9
+ DW_CFA_register: r8 \(r8\) in r9 \(r9\)
DW_CFA_advance_loc: 1 to 00000053
DW_CFA_remember_state
DW_CFA_advance_loc: 1 to 00000054
- DW_CFA_restore: r6
+ DW_CFA_restore: r6 \(rbp\)
DW_CFA_advance_loc: 1 to 00000055
- DW_CFA_undefined: r16
+ DW_CFA_undefined: r16 \(rip\)
DW_CFA_advance_loc: 1 to 00000056
- DW_CFA_same_value: r3
+ DW_CFA_same_value: r3 \(rbx\)
DW_CFA_advance_loc: 1 to 00000057
DW_CFA_restore_state
DW_CFA_nop