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: fix addr2line for xcoff


Hello,

as addr2line uses bfd_find_nearest_line_discriminator, the xcoff backend needs to define this method.

Tested by rebuilding for powerpc-ibm-aix7.1.

Ok for trunk ?

Tristan.

bfd/

	* coff-rs6000.c (xcoff_find_nearest_line_discriminator): New function.
	(rs6000coff_vec): Reference it.

===================================================================
RCS file: /cvs/src/src/bfd/coff-rs6000.c,v
retrieving revision 1.109
diff -c -r1.109 coff-rs6000.c
*** coff-rs6000.c	16 May 2013 15:41:40 -0000	1.109
--- coff-rs6000.c	1 Jul 2013 13:32:39 -0000
***************
*** 449,454 ****
--- 449,470 ----
                                              line_ptr);
  }
  
+ xcoff_find_nearest_line_discriminator (bfd *abfd,
+                                       asection *section,
+                                       asymbol **symbols,
+                                       bfd_vma offset,
+                                       const char **filename_ptr,
+                                       const char **functionname_ptr,
+                                       unsigned int *line_ptr,
+                                       unsigned int *discriminator)
+ {
+   *discriminator = 0;
+   return coff_find_nearest_line_with_names (abfd, xcoff_debug_sections,
+                                             section, symbols, offset,
+                                             filename_ptr, functionname_ptr,
+                                             line_ptr);
+ }
+ 
  

  void
  _bfd_xcoff_swap_sym_in (bfd *abfd, void * ext1, void * in1)
***************
*** 4120,4126 ****
      coff_bfd_is_target_special_symbol,
      coff_get_lineno,
      xcoff_find_nearest_line,
!     _bfd_generic_find_nearest_line_discriminator,
      _bfd_generic_find_line,
      coff_find_inliner_info,
      coff_bfd_make_debug_symbol,
--- 4136,4142 ----
      coff_bfd_is_target_special_symbol,
      coff_get_lineno,
      xcoff_find_nearest_line,
!     xcoff_find_nearest_line_discriminator,
      _bfd_generic_find_line,
      coff_find_inliner_info,
      coff_bfd_make_debug_symbol,


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