aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-08-12 17:48:00 +0930
committerAlan Modra <amodra@gmail.com>2022-08-13 14:11:27 +0930
commitcc44342012efbc20421fa91abd1f0c3000a2241a (patch)
treebd2481e9e2386e5b439ff2157d7aa36967d81a28 /ld/testsuite
parent31e5a3a3807e7d5b43845d0d17ddfd1a8692752c (diff)
downloadgdb-cc44342012efbc20421fa91abd1f0c3000a2241a.zip
gdb-cc44342012efbc20421fa91abd1f0c3000a2241a.tar.gz
gdb-cc44342012efbc20421fa91abd1f0c3000a2241a.tar.bz2
readelf: print 0x0 as 0, and remove trailing spaces
This changes readelf output a little, removing the 0x prefix on hex output when the value is 0, except in cases where a fixed field width is shown. %#010x is not a good replacement for 0x%08x.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-arm/cmse_main_sec_debug.d18
1 files changed, 9 insertions, 9 deletions
diff --git a/ld/testsuite/ld-arm/cmse_main_sec_debug.d b/ld/testsuite/ld-arm/cmse_main_sec_debug.d
index 2f01af2..0341579 100644
--- a/ld/testsuite/ld-arm/cmse_main_sec_debug.d
+++ b/ld/testsuite/ld-arm/cmse_main_sec_debug.d
@@ -3,22 +3,22 @@ tmpdir/cmse_main_sec_debug: .*
Contents of the \.debug_info section:
- Compilation Unit @ offset 0x0:
+ Compilation Unit @ offset (0x)?0:
Length: 0x34 \(32-bit\)
Version: 4
- Abbrev Offset: 0x0
+ Abbrev Offset: (0x)?0
Pointer Size: 4
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
- <c> DW_AT_producer : \(indirect string, offset: 0x[a-f0-9]+\): GNU C17 10.0.0 20190617
+ <c> DW_AT_producer : \(indirect string, offset: (0x)?[a-f0-9]+\): GNU C17 10.0.0 20190617
<10> DW_AT_language : 12 \(ANSI C99\)
- <11> DW_AT_name : \(indirect string, offset: 0x[a-f0-9]+\): sec.c
- <15> DW_AT_comp_dir : \(indirect string, offset: 0x[a-f0-9]+\): Blinky
- <19> DW_AT_ranges : 0x[a-f0-9]+
- <1d> DW_AT_low_pc : 0x[a-f0-9]+
- <21> DW_AT_stmt_list : 0x[a-f0-9]+
+ <11> DW_AT_name : \(indirect string, offset: (0x)?[a-f0-9]+\): sec.c
+ <15> DW_AT_comp_dir : \(indirect string, offset: (0x)?[a-f0-9]+\): Blinky
+ <19> DW_AT_ranges : (0x)?0
+ <1d> DW_AT_low_pc : (0x)?0
+ <21> DW_AT_stmt_list : (0x)?0
<1><25>: Abbrev Number: 2 \(DW_TAG_subprogram\)
<26> DW_AT_external : 1
- <26> DW_AT_name : \(indirect string, offset: 0x[a-f0-9]+\): SecureLED_On
+ <26> DW_AT_name : \(indirect string, offset: (0x)?[a-f0-9]+\): SecureLED_On
<2a> DW_AT_decl_file : 1
<2b> DW_AT_decl_line : 2
<2c> DW_AT_decl_column : 1