PR 14067 - addr2line broken on x86_64-w64-mingw32

Tristan Gingold gingold@adacore.com
Tue Nov 6 14:58:00 GMT 2012


Hi Kai,

in the ChangeLog for PR binutils/14067, you have written:

bfd/
	* coff-i386.c (_bfd_generic_find_nearest_line_discriminator):
	define as coff_find_nearest_line_discriminator.
	* libcoff-in.h (coff_find_nearest_line_discriminator): New
	* libcoff.h: Regenerated.
	* coff-x86_64.c: Likewise.

But _bfd_generic_find_nearest_line_discriminator is not redefined in
coff-x86_64.c, and therefore addr2line always fails to find the line.

Fixed by the following patch.  Ok for trunk ?

Tristan.

bfd/
2012-11-06  Tristan Gingold  <gingold@adacore.com>

	* coff-x86_64.c (_bfd_generic_find_nearest_line_discriminator):
	Define as coff_find_nearest_line_discriminator.

diff --git a/bfd/coff-x86_64.c b/bfd/coff-x86_64.c
index fc39f9f..1e31395 100644
--- a/bfd/coff-x86_64.c
+++ b/bfd/coff-x86_64.c
@@ -731,6 +731,9 @@ coff_amd64_is_local_label_name (bfd *abfd, const char *name)
 #define amd64coff_object_p coff_object_p
 #endif
 
+#define _bfd_generic_find_nearest_line_discriminator \
+       coff_find_nearest_line_discriminator
+
 const bfd_target
 #ifdef TARGET_SYM
   TARGET_SYM =



More information about the Binutils mailing list