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 alpha-vms


Hi,

like xcoff, alpha-vma needs to define find_nearest_line_discriminator for addr2line.

Committed on trunk.

Tristan.

bfd/
2013-07-02  Tristan Gingold  <gingold@adacore.com>

	* vms-alpha.c (_bfd_generic_find_nearest_line_discriminator): Define.
	(_bfd_vms_find_nearest_line_discriminator): New function.


Index: vms-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/vms-alpha.c,v
retrieving revision 1.55
diff -c -r1.55 vms-alpha.c
*** vms-alpha.c	24 Apr 2013 13:19:27 -0000	1.55
--- vms-alpha.c	2 Jul 2013 09:36:19 -0000
***************
*** 4740,4745 ****
--- 4740,4765 ----
  
    return FALSE;
  }
+ 
+ /* Likewise but with a discriminator.  */
+ 
+ static bfd_boolean
+ _bfd_vms_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 _bfd_vms_find_nearest_dst_line (abfd, section, symbols, offset,
+ 					 filename_ptr, functionname_ptr,
+ 					 line_ptr);
+ }
+ 
  

  /* Canonicalizations.  */
  /* Set name, value, section and flags of SYM from E.  */
***************
*** 9322,9327 ****
--- 9342,9349 ----
  #define alpha_vms_find_inliner_info        _bfd_nosymbols_find_inliner_info
  #define alpha_vms_bfd_make_debug_symbol    _bfd_nosymbols_bfd_make_debug_symbol
  #define alpha_vms_find_nearest_line        _bfd_vms_find_nearest_dst_line
+ #define _bfd_generic_find_nearest_line_discriminator \
+   _bfd_vms_find_nearest_line_discriminator
  #define alpha_vms_bfd_is_local_label_name  vms_bfd_is_local_label_name
  
  /* Generic table.  */


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