This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, testsuite, avr] Make testcase pass for long source file paths


Hi,

  This trivial patch fixes a test failure that shows up if the source
  file path is long.

  objdump skips the "CU :" prefix and the directory part when printing
  source file path for a CU's line number table, but the testcase
  always expects it to be present. Since it doesn't really validate
  anything in that line, I've relaxed the regex to only look for a
  trailing semicolon.

  And no, the --wide option doesn't help - the printing happens in
  dwarf.c, which uses a do_wide variable that isn't set from objdump.

  If this is ok, could someone commit please? I don't have commit access.

Regards
Senthil

ld/testsuite/ChangeLog

2016-03-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	* ld-avr/gc-section-debugline.d: Relax regex check
    for CU :.


diff --git a/ld/testsuite/ld-avr/gc-section-debugline.d b/ld/testsuite/ld-avr/gc-section-debugline.d
index 147ae42..5daf915 100644
--- a/ld/testsuite/ld-avr/gc-section-debugline.d
+++ b/ld/testsuite/ld-avr/gc-section-debugline.d
@@ -9,7 +9,7 @@
 
 Decoded dump of debug contents of section .debug_line:
 
-CU: .*:
+.*:
 File name                            Line number    Starting address
 per-function-debugline.s                      39                   0
 
-- 
Sent with my mu4e


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]