Define bfd_find_line entry of BFD_JUMP_TABLE_SYMBOLS using NAME.
authorAlan Modra <amodra@gmail.com>
Wed, 15 Oct 2014 05:10:45 +0000 (15:40 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 15 Oct 2014 12:25:25 +0000 (22:55 +1030)
In https://www.sourceware.org/ml/binutils/2005-06/msg00082.html
HJ implemented bfd_find_line for DWARF2, but cheated a little in not
using the usual NAME##_find_line, saving quite a lot of boring
editing.  However that shortcut probably contributed to
bfd_find_nearest_line_discriminator being implemented the same way,
and missing support for some targets.

* targets.c (BFD_JUMP_TABLE_SYMBOLS): Use NAME##_find_line.
* aout-adobe.c (aout_32_find_line): Define.
(aout_32_bfd_make_debug_symbol, aout_32_bfd_reloc_type_lookup,
aout_32_bfd_reloc_name_lookup): Define using _bfd_nosymbols define.
* aout-target.h (MY_find_line): Define.
* aout-tic30.c (MY_find_line): Define.
* binary.c (binary_find_line): Define.
* bout.c (aout_32_find_line): Define.
* coff-rs6000.c (_bfd_xcoff_find_line): Define.
* coff64-rs6000.c (rs6000_xcoff64_vec): Use coff_find_line.
(rs6000_xcoff64_aix_vec): Likewise.
* elf-bfd.h (_bfd_generic_find_line): Don't define.
* elfxx-target.h (bfd_elfNN_find_line): Define.
* i386msdos.c (msdos_find_line): Define.
* i386os9k.c (aout_32_find_line): Define.
* ieee.c (ieee_find_nearest_line, ieee_find_inliner_info): Delete func.
(ieee_find_nearest_line, ieee_find_line,
ieee_find_inliner_info): Define.
* ihex.c (ihex_find_line): Define.
* libbfd-in.h (_bfd_nosymbols_find_line): Define.
(_bfd_generic_find_line): Don't define.
* libbfd.c (_bfd_generic_find_line): Delete.
* libcoff-in.h (coff_find_line): Define.
* libecoff.h (_bfd_ecoff_find_line): Define.
* mach-o.h (bfd_mach_o_find_line): Define.
* mmo.c (mmo_find_line): Define.
* nlm-target.h (nlm_find_line): Define.
* oasys.c (oasys_find_nearest_line, oasys_find_inliner_info): Delete.
(oasys_find_nearest_line, oasys_find_line,
oasys_find_inliner_info): Define.
* pef.c (bfd_pef_find_line): Define.
* plugin.c (bfd_plugin_find_line): Define.
* ppcboot.c (ppcboot_find_line): Define.
* som.c (som_find_line): Define.
* srec.c (srec_find_line): Define.
* tekhex.c (tekhex_find_line): Define.
* versados.c (versados_find_line): Define.
* vms-alpha.c (alpha_vms_find_line): Define.
* xsym.c (bfd_sym_find_line): Define.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* libcoff.h: Regenerate.

35 files changed:
bfd/ChangeLog
bfd/aout-adobe.c
bfd/aout-target.h
bfd/aout-tic30.c
bfd/bfd-in2.h
bfd/binary.c
bfd/bout.c
bfd/coff-rs6000.c
bfd/coff64-rs6000.c
bfd/elf-bfd.h
bfd/elfxx-target.h
bfd/i386msdos.c
bfd/i386os9k.c
bfd/ieee.c
bfd/ihex.c
bfd/libbfd-in.h
bfd/libbfd.c
bfd/libbfd.h
bfd/libcoff-in.h
bfd/libcoff.h
bfd/libecoff.h
bfd/mach-o.h
bfd/mmo.c
bfd/nlm-target.h
bfd/oasys.c
bfd/pef.c
bfd/plugin.c
bfd/ppcboot.c
bfd/som.c
bfd/srec.c
bfd/targets.c
bfd/tekhex.c
bfd/versados.c
bfd/vms-alpha.c
bfd/xsym.c

index f44d14a2d45c5561985fe21bfa79ae9ca2962f8f..60dafe047aefbf2f43ad921db83e7f1e8c769770 100644 (file)
@@ -1,3 +1,48 @@
+2014-10-15  Alan Modra  <amodra@gmail.com>
+
+       * targets.c (BFD_JUMP_TABLE_SYMBOLS): Use NAME##_find_line.
+       * aout-adobe.c (aout_32_find_line): Define.
+       (aout_32_bfd_make_debug_symbol, aout_32_bfd_reloc_type_lookup,
+       aout_32_bfd_reloc_name_lookup): Define using _bfd_nosymbols define.
+       * aout-target.h (MY_find_line): Define.
+       * aout-tic30.c (MY_find_line): Define.
+       * binary.c (binary_find_line): Define.
+       * bout.c (aout_32_find_line): Define.
+       * coff-rs6000.c (_bfd_xcoff_find_line): Define.
+       * coff64-rs6000.c (rs6000_xcoff64_vec): Use coff_find_line.
+       (rs6000_xcoff64_aix_vec): Likewise.
+       * elf-bfd.h (_bfd_generic_find_line): Don't define.
+       * elfxx-target.h (bfd_elfNN_find_line): Define.
+       * i386msdos.c (msdos_find_line): Define.
+       * i386os9k.c (aout_32_find_line): Define.
+       * ieee.c (ieee_find_nearest_line, ieee_find_inliner_info): Delete func.
+       (ieee_find_nearest_line, ieee_find_line,
+       ieee_find_inliner_info): Define.
+       * ihex.c (ihex_find_line): Define.
+       * libbfd-in.h (_bfd_nosymbols_find_line): Define.
+       (_bfd_generic_find_line): Don't define.
+       * libbfd.c (_bfd_generic_find_line): Delete.
+       * libcoff-in.h (coff_find_line): Define.
+       * libecoff.h (_bfd_ecoff_find_line): Define.
+       * mach-o.h (bfd_mach_o_find_line): Define.
+       * mmo.c (mmo_find_line): Define.
+       * nlm-target.h (nlm_find_line): Define.
+       * oasys.c (oasys_find_nearest_line, oasys_find_inliner_info): Delete.
+       (oasys_find_nearest_line, oasys_find_line,
+       oasys_find_inliner_info): Define.
+       * pef.c (bfd_pef_find_line): Define.
+       * plugin.c (bfd_plugin_find_line): Define.
+       * ppcboot.c (ppcboot_find_line): Define.
+       * som.c (som_find_line): Define.
+       * srec.c (srec_find_line): Define.
+       * tekhex.c (tekhex_find_line): Define.
+       * versados.c (versados_find_line): Define.
+       * vms-alpha.c (alpha_vms_find_line): Define.
+       * xsym.c (bfd_sym_find_line): Define.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * libcoff.h: Regenerate.
+
 2014-10-15  Tristan Gingold  <gingold@adacore.com>
 
        * version.m4: Bump version to 2.25.51
index 6c65ad5166b3855865cd0e62e7cf55171512eca0..cfdcc645ba64b3871d3d6543a9bfb23fd91e9bdd 100644 (file)
@@ -446,9 +446,10 @@ aout_adobe_sizeof_headers (bfd *ignore_abfd ATTRIBUTE_UNUSED,
 
 /* Build the transfer vector for Adobe A.Out files.  */
 
-#define aout_32_bfd_make_debug_symbol ((asymbol *(*) (bfd *, void *, unsigned long)) bfd_nullvoidptr)
-#define aout_32_bfd_reloc_type_lookup ((reloc_howto_type *(*) (bfd *, bfd_reloc_code_real_type)) bfd_nullvoidptr)
-#define aout_32_bfd_reloc_name_lookup ((reloc_howto_type *(*) (bfd *, const char *)) bfd_nullvoidptr)
+#define aout_32_find_line                          _bfd_nosymbols_find_line
+#define aout_32_bfd_make_debug_symbol              _bfd_nosymbols_bfd_make_debug_symbol
+#define aout_32_bfd_reloc_type_lookup              _bfd_norelocs_bfd_reloc_type_lookup
+#define aout_32_bfd_reloc_name_lookup              _bfd_norelocs_bfd_reloc_name_lookup
 #define aout_32_close_and_cleanup                   aout_32_bfd_free_cached_info
 #define        aout_32_set_arch_mach                       aout_adobe_set_arch_mach
 #define        aout_32_set_section_contents                aout_adobe_set_section_contents
index 019c49c32ca9b074d1f736d16d610b3e501cbb33..3bca8b550ff3f9dab83af629a674513f2fa14b6b 100644 (file)
@@ -468,6 +468,9 @@ MY_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
 #ifndef MY_find_nearest_line
 #define MY_find_nearest_line NAME (aout, find_nearest_line)
 #endif
+#ifndef MY_find_line
+#define MY_find_line _bfd_nosymbols_find_line
+#endif
 #ifndef MY_find_inliner_info
 #define MY_find_inliner_info _bfd_nosymbols_find_inliner_info
 #endif
index 444ca4bea09be3b6a06222fb2f588f045218ee89..e74464d52e79d827c7eea08727c142d0880b4cb7 100644 (file)
@@ -926,6 +926,9 @@ tic30_aout_set_arch_mach (bfd *abfd,
 #ifndef MY_find_nearest_line
 #define MY_find_nearest_line NAME (aout, find_nearest_line)
 #endif
+#ifndef MY_find_line
+#define MY_find_line _bfd_nosymbols_find_line
+#endif
 #ifndef MY_find_inliner_info
 #define MY_find_inliner_info _bfd_nosymbols_find_inliner_info
 #endif
index a40a14a1526f89c92a441d5aeff7c66f2a1188ab..2d64300c36fd67a9c87a64beeeb0dad6c38497a0 100644 (file)
@@ -7019,7 +7019,7 @@ typedef struct bfd_target
   NAME##_get_lineno, \
   NAME##_find_nearest_line, \
   _bfd_generic_find_nearest_line_discriminator, \
-  _bfd_generic_find_line, \
+  NAME##_find_line, \
   NAME##_find_inliner_info, \
   NAME##_bfd_make_debug_symbol, \
   NAME##_read_minisymbols, \
index 09bbeceb158b9766e9d36d418261310df60f6a24..d35e859f6dbde28f85b2726ccb753f23eedbb920 100644 (file)
@@ -204,6 +204,7 @@ binary_get_symbol_info (bfd *ignore_abfd ATTRIBUTE_UNUSED,
 #define binary_bfd_is_local_label_name      bfd_generic_is_local_label_name
 #define binary_get_lineno                  _bfd_nosymbols_get_lineno
 #define binary_find_nearest_line           _bfd_nosymbols_find_nearest_line
+#define binary_find_line                   _bfd_nosymbols_find_line
 #define binary_find_inliner_info           _bfd_nosymbols_find_inliner_info
 #define binary_bfd_make_debug_symbol       _bfd_nosymbols_bfd_make_debug_symbol
 #define binary_read_minisymbols            _bfd_generic_read_minisymbols
index b444f803c89e094e13e82955aacb26d5569d0286..a27df583b1a655ea4eda23ae0c5d87cf4b6ae625 100644 (file)
@@ -1374,6 +1374,7 @@ b_out_bfd_get_relocated_section_contents (bfd *output_bfd,
 
 /* Build the transfer vectors for Big and Little-Endian B.OUT files.  */
 
+#define aout_32_find_line                      _bfd_nosymbols_find_line
 #define aout_32_bfd_make_debug_symbol          _bfd_nosymbols_bfd_make_debug_symbol
 #define aout_32_close_and_cleanup              aout_32_bfd_free_cached_info
 #define b_out_bfd_link_hash_table_create       _bfd_generic_link_hash_table_create
index 39b2db3b7c3f137b11ce9b44ba9b84e8de8ee928..2cb580c3f39fa5be08de6500c7889751f627fda8 100644 (file)
@@ -4048,6 +4048,7 @@ const struct xcoff_dwsect_name xcoff_dwsect_names[] = {
 #define _bfd_xcoff_find_nearest_line xcoff_find_nearest_line
 #define _bfd_generic_find_nearest_line_discriminator \
   xcoff_find_nearest_line_discriminator
+#define _bfd_xcoff_find_line coff_find_line
 #define _bfd_xcoff_find_inliner_info coff_find_inliner_info
 #define _bfd_xcoff_bfd_make_debug_symbol coff_bfd_make_debug_symbol
 #define _bfd_xcoff_read_minisymbols _bfd_generic_read_minisymbols
index a735e04b80ee5d223ead8a3a7c0cd4fe5ede3b15..b1968ce7b1f59bb2d6432985f13168d61e242172 100644 (file)
@@ -2717,7 +2717,7 @@ const bfd_target rs6000_xcoff64_vec =
     coff_get_lineno,
     coff_find_nearest_line,
     _bfd_generic_find_nearest_line_discriminator,
-    _bfd_generic_find_line,
+    coff_find_line,
     coff_find_inliner_info,
     coff_bfd_make_debug_symbol,
     _bfd_generic_read_minisymbols,
@@ -2975,7 +2975,7 @@ const bfd_target rs6000_xcoff64_aix_vec =
     coff_get_lineno,
     coff_find_nearest_line,
     _bfd_generic_find_nearest_line_discriminator,
-    _bfd_generic_find_line,
+    coff_find_line,
     coff_find_inliner_info,
     coff_bfd_make_debug_symbol,
     _bfd_generic_read_minisymbols,
index b2feee3b147a82abb20cdd70fed23802369d0869..4d0583e1615241931bebddd0c1b9a78f15880b46 100644 (file)
@@ -1907,7 +1907,6 @@ extern bfd_boolean _bfd_elf_find_line
   (bfd *, asymbol **, asymbol *, const char **, unsigned int *);
 extern bfd_boolean _bfd_elf_find_line_discriminator
   (bfd *, asymbol **, asymbol *, const char **, unsigned int *, unsigned int *);
-#define _bfd_generic_find_line _bfd_elf_find_line
 #define _bfd_generic_find_nearest_line_discriminator \
         _bfd_elf_find_nearest_line_discriminator
 extern bfd_boolean _bfd_elf_find_inliner_info
index b6531478e661c8dfa993302273cbaaf986f4f843..692fb46524af5b6ac428ef930441aeede41f9398 100644 (file)
@@ -49,6 +49,9 @@
 #ifndef bfd_elfNN_find_nearest_line
 #define bfd_elfNN_find_nearest_line    _bfd_elf_find_nearest_line
 #endif
+#ifndef bfd_elfNN_find_line
+#define bfd_elfNN_find_line            _bfd_elf_find_line
+#endif
 #ifndef bfd_elfNN_find_inliner_info
 #define bfd_elfNN_find_inliner_info    _bfd_elf_find_inliner_info
 #endif
index e16a66cc2d2493f0c7648312700f1c47489e6734..f02659fb49c3865a1fca42cb9f0421da05dbccb4 100644 (file)
@@ -163,6 +163,7 @@ msdos_set_section_contents (bfd *abfd,
 #define msdos_print_symbol _bfd_nosymbols_print_symbol
 #define msdos_get_symbol_info _bfd_nosymbols_get_symbol_info
 #define msdos_find_nearest_line _bfd_nosymbols_find_nearest_line
+#define msdos_find_line _bfd_nosymbols_find_line
 #define msdos_find_inliner_info _bfd_nosymbols_find_inliner_info
 #define msdos_get_lineno _bfd_nosymbols_get_lineno
 #define msdos_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false)
index 0316263278ec25cff5f4f1da2788f6cdfa5aa33b..d8d540891599a28fe157482ac63ac8e2413d51f8 100644 (file)
@@ -154,6 +154,7 @@ os9k_sizeof_headers (bfd *abfd ATTRIBUTE_UNUSED,
 
 #define aout_32_close_and_cleanup aout_32_bfd_free_cached_info
 
+#define aout_32_find_line            _bfd_nosymbols_find_line
 #define aout_32_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol
 
 #define aout_32_bfd_reloc_type_lookup _bfd_norelocs_bfd_reloc_type_lookup
index a3d08bb819a770f1479261339dfb77c651f32bc0..256e8f6693ced62b0645fe7e0122a37a99b396ee 100644 (file)
@@ -3675,26 +3675,9 @@ ieee_openr_next_archived_file (bfd *arch, bfd *prev)
     }
 }
 
-static bfd_boolean
-ieee_find_nearest_line (bfd *abfd ATTRIBUTE_UNUSED,
-                       asection *section ATTRIBUTE_UNUSED,
-                       asymbol **symbols ATTRIBUTE_UNUSED,
-                       bfd_vma offset ATTRIBUTE_UNUSED,
-                       const char **filename_ptr ATTRIBUTE_UNUSED,
-                       const char **functionname_ptr ATTRIBUTE_UNUSED,
-                       unsigned int *line_ptr ATTRIBUTE_UNUSED)
-{
-  return FALSE;
-}
-
-static bfd_boolean
-ieee_find_inliner_info (bfd *abfd ATTRIBUTE_UNUSED,
-                       const char **filename_ptr ATTRIBUTE_UNUSED,
-                       const char **functionname_ptr ATTRIBUTE_UNUSED,
-                       unsigned int *line_ptr ATTRIBUTE_UNUSED)
-{
-  return FALSE;
-}
+#define ieee_find_nearest_line _bfd_nosymbols_find_nearest_line
+#define ieee_find_line         _bfd_nosymbols_find_line
+#define ieee_find_inliner_info _bfd_nosymbols_find_inliner_info
 
 static int
 ieee_generic_stat_arch_elt (bfd *abfd, struct stat *buf)
index 3301f2f3aafb03a412afcd272a90c6623b5057d4..8d3590d670e9c34a2a98642f31fdac9ebea739f1 100644 (file)
@@ -922,6 +922,7 @@ ihex_sizeof_headers (bfd *abfd ATTRIBUTE_UNUSED,
 #define ihex_bfd_is_local_label_name              _bfd_nosymbols_bfd_is_local_label_name
 #define ihex_get_lineno                           _bfd_nosymbols_get_lineno
 #define ihex_find_nearest_line                    _bfd_nosymbols_find_nearest_line
+#define ihex_find_line                            _bfd_nosymbols_find_line
 #define ihex_find_inliner_info                    _bfd_nosymbols_find_inliner_info
 #define ihex_bfd_make_debug_symbol                _bfd_nosymbols_bfd_make_debug_symbol
 #define ihex_read_minisymbols                     _bfd_nosymbols_read_minisymbols
index 5eb06c30d23576ce52057db4f2d3362418b82dbf..23769f37a70f784d09f2d84f42ecf5207a8cc3ce 100644 (file)
@@ -402,6 +402,10 @@ extern bfd_boolean _bfd_vms_lib_ia64_mkarchive (bfd *abfd);
   ((bfd_boolean (*) (bfd *, asection *, asymbol **, bfd_vma, const char **, \
                     const char **, unsigned int *)) \
    bfd_false)
+#define _bfd_nosymbols_find_line \
+  ((bfd_boolean (*) (bfd *, asymbol **, asymbol *,     \
+                    const char **, unsigned int *))    \
+   bfd_false)
 #define _bfd_nosymbols_find_inliner_info \
   ((bfd_boolean (*) (bfd *, const char **, const char **, unsigned int *)) \
    bfd_false)
@@ -545,9 +549,6 @@ extern bfd_boolean _bfd_dwarf2_find_line
   (bfd *, asymbol **, asymbol *, const char **,
    unsigned int *, unsigned int *, unsigned int, void **);
 
-bfd_boolean _bfd_generic_find_line
-  (bfd *, asymbol **, asymbol *, const char **, unsigned int *);
-
 bfd_boolean _bfd_generic_find_nearest_line_discriminator
   (bfd *, asection *, asymbol **, bfd_vma, const char **, const char **,
    unsigned int *, unsigned int *);
index d98a9d28a696a1e8c6a84bab113e71aaa5867f3b..59b0e1f62387095783110decf38d2ee625aaf061 100644 (file)
@@ -1104,16 +1104,6 @@ read_signed_leb128 (bfd *abfd ATTRIBUTE_UNUSED,
   return result;
 }
 
-bfd_boolean
-_bfd_generic_find_line (bfd *abfd ATTRIBUTE_UNUSED,
-                      asymbol **symbols ATTRIBUTE_UNUSED,
-                      asymbol *symbol ATTRIBUTE_UNUSED,
-                      const char **filename_ptr ATTRIBUTE_UNUSED,
-                      unsigned int *linenumber_ptr ATTRIBUTE_UNUSED)
-{
-  return FALSE;
-}
-
 bfd_boolean
 _bfd_generic_find_nearest_line_discriminator (bfd *abfd ATTRIBUTE_UNUSED,
                                               asection *section ATTRIBUTE_UNUSED,
index d43fec4ab1d1c2799e7efa38d99423f868a3f25c..af8ccc5f755cd29f1b9eed24e687efc7148e2ed2 100644 (file)
@@ -407,6 +407,10 @@ extern bfd_boolean _bfd_vms_lib_ia64_mkarchive (bfd *abfd);
   ((bfd_boolean (*) (bfd *, asection *, asymbol **, bfd_vma, const char **, \
                     const char **, unsigned int *)) \
    bfd_false)
+#define _bfd_nosymbols_find_line \
+  ((bfd_boolean (*) (bfd *, asymbol **, asymbol *,     \
+                    const char **, unsigned int *))    \
+   bfd_false)
 #define _bfd_nosymbols_find_inliner_info \
   ((bfd_boolean (*) (bfd *, const char **, const char **, unsigned int *)) \
    bfd_false)
@@ -550,9 +554,6 @@ extern bfd_boolean _bfd_dwarf2_find_line
   (bfd *, asymbol **, asymbol *, const char **,
    unsigned int *, unsigned int *, unsigned int, void **);
 
-bfd_boolean _bfd_generic_find_line
-  (bfd *, asymbol **, asymbol *, const char **, unsigned int *);
-
 bfd_boolean _bfd_generic_find_nearest_line_discriminator
   (bfd *, asection *, asymbol **, bfd_vma, const char **, const char **,
    unsigned int *, unsigned int *);
index 8a45bf62c12f0ccc5552df6b405dc11bb7a842d4..44185a5f33d86567e33f03c91bcdca600294d0d4 100644 (file)
@@ -360,6 +360,7 @@ extern bfd_boolean coff_find_nearest_line
 extern bfd_boolean coff_find_nearest_line_discriminator
   (bfd *, asection *, asymbol **, bfd_vma, const char **,
    const char **, unsigned int *, unsigned int *);
+#define coff_find_line _bfd_nosymbols_find_line
 struct dwarf_debug_section;
 extern bfd_boolean coff_find_nearest_line_with_names
   (bfd *, const struct dwarf_debug_section *, asection *, asymbol **,
index 540ddf94058ea156ccddc946bf958d506c240500..67fb13637dff5dae51135e192c2466273570e804 100644 (file)
@@ -364,6 +364,7 @@ extern bfd_boolean coff_find_nearest_line
 extern bfd_boolean coff_find_nearest_line_discriminator
   (bfd *, asection *, asymbol **, bfd_vma, const char **,
    const char **, unsigned int *, unsigned int *);
+#define coff_find_line _bfd_nosymbols_find_line
 struct dwarf_debug_section;
 extern bfd_boolean coff_find_nearest_line_with_names
   (bfd *, const struct dwarf_debug_section *, asection *, asymbol **,
index 97acea40e22cceea1516e69f57dbc78c3e83f76c..a9afd8b9db40f45085d34851b2971ee271b37179 100644 (file)
@@ -291,6 +291,7 @@ extern bfd_boolean _bfd_ecoff_bfd_is_local_label_name
 extern bfd_boolean _bfd_ecoff_find_nearest_line
   (bfd *, asection *, asymbol **, bfd_vma, const char **, const char **,
    unsigned int *);
+#define _bfd_ecoff_find_line _bfd_nosymbols_find_line
 #define _bfd_ecoff_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol
 #define _bfd_ecoff_read_minisymbols _bfd_generic_read_minisymbols
 #define _bfd_ecoff_minisymbol_to_symbol _bfd_generic_minisymbol_to_symbol
index 11f6c700c8ab381809a7150bf856c9d926259916..415c17507b65a83f45e16e28347600bb7cc136c5 100644 (file)
@@ -683,6 +683,7 @@ void bfd_mach_o_convert_section_name_to_bfd (bfd *, const char *, const char *,
 bfd_boolean bfd_mach_o_find_nearest_line (bfd *, asection *, asymbol **,
                                           bfd_vma, const char **,
                                           const char **, unsigned int *);
+#define bfd_mach_o_find_line _bfd_nosymbols_find_line
 bfd_boolean bfd_mach_o_close_and_cleanup (bfd *);
 bfd_boolean bfd_mach_o_free_cached_info (bfd *);
 
index 35d06f1d45276e1d27ac4443d6d534a31938e486..2c74c764fc0879fb3621ca9f9ed6b7b65bf5bf86 100644 (file)
--- a/bfd/mmo.c
+++ b/bfd/mmo.c
@@ -3210,6 +3210,7 @@ mmo_write_object_contents (bfd *abfd)
 /* FIXME: We can do better on this one, if we have a dwarf2 .debug_line
    section or if MMO line numbers are implemented.  */
 #define mmo_find_nearest_line _bfd_nosymbols_find_nearest_line
+#define mmo_find_line _bfd_nosymbols_find_line
 #define mmo_find_inliner_info _bfd_nosymbols_find_inliner_info
 #define mmo_make_empty_symbol _bfd_generic_make_empty_symbol
 #define mmo_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol
index 08fba07feb49110fd11670e171f8f9343aa856c9..2343cff1d957b3f14e19f80d2a3a80969f6c4034 100644 (file)
@@ -29,6 +29,7 @@
 #define nlm_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false)
 #define nlm_get_lineno                          _bfd_nosymbols_get_lineno
 #define nlm_find_nearest_line                   _bfd_nosymbols_find_nearest_line
+#define nlm_find_line                           _bfd_nosymbols_find_line
 #define nlm_find_inliner_info                   _bfd_nosymbols_find_inliner_info
 #define nlm_bfd_make_debug_symbol               _bfd_nosymbols_bfd_make_debug_symbol
 #define nlm_read_minisymbols                    _bfd_generic_read_minisymbols
index b4a97fe4bdc70cd1b3bcab5dc442338b402830f1..9ff9b9e536fd9d41874259059de9af79a1dbc348 100644 (file)
@@ -1129,26 +1129,9 @@ oasys_openr_next_archived_file (bfd *arch, bfd *prev)
   return NULL;
 }
 
-static bfd_boolean
-oasys_find_nearest_line (bfd *abfd ATTRIBUTE_UNUSED,
-                        asection *section ATTRIBUTE_UNUSED,
-                        asymbol **symbols ATTRIBUTE_UNUSED,
-                        bfd_vma offset ATTRIBUTE_UNUSED,
-                        const char **filename_ptr ATTRIBUTE_UNUSED,
-                        const char **functionname_ptr ATTRIBUTE_UNUSED,
-                        unsigned int *line_ptr ATTRIBUTE_UNUSED)
-{
-  return FALSE;
-}
-
-static bfd_boolean
-oasys_find_inliner_info (bfd *abfd ATTRIBUTE_UNUSED,
-                        const char **filename_ptr ATTRIBUTE_UNUSED,
-                        const char **functionname_ptr ATTRIBUTE_UNUSED,
-                        unsigned int *line_ptr ATTRIBUTE_UNUSED)
-{
-  return FALSE;
-}
+#define oasys_find_nearest_line _bfd_nosymbols_find_nearest_line
+#define oasys_find_line         _bfd_nosymbols_find_line
+#define oasys_find_inliner_info _bfd_nosymbols_find_inliner_info
 
 static int
 oasys_generic_stat_arch_elt (bfd *abfd, struct stat *buf)
index 4faabb49d18fde5be17f73de1d1027710078d8bb..4c294173b985ea4f29f309d9a75e0308c1589f49 100644 (file)
--- a/bfd/pef.c
+++ b/bfd/pef.c
@@ -41,6 +41,7 @@
 #define bfd_pef_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false)
 #define bfd_pef_get_lineno                          _bfd_nosymbols_get_lineno
 #define bfd_pef_find_nearest_line                   _bfd_nosymbols_find_nearest_line
+#define bfd_pef_find_line                           _bfd_nosymbols_find_line
 #define bfd_pef_find_inliner_info                   _bfd_nosymbols_find_inliner_info
 #define bfd_pef_bfd_make_debug_symbol               _bfd_nosymbols_bfd_make_debug_symbol
 #define bfd_pef_read_minisymbols                    _bfd_generic_read_minisymbols
index d336b673111697a5ca79c8153519da6e02629a33..a068861641c2bac17a5234eb5aebcb5571dafd23 100644 (file)
@@ -83,6 +83,7 @@ dlerror (void)
 #define bfd_plugin_bfd_is_target_special_symbol       ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false)
 #define bfd_plugin_get_lineno                         _bfd_nosymbols_get_lineno
 #define bfd_plugin_find_nearest_line                  _bfd_nosymbols_find_nearest_line
+#define bfd_plugin_find_line                          _bfd_nosymbols_find_line
 #define bfd_plugin_find_inliner_info                  _bfd_nosymbols_find_inliner_info
 #define bfd_plugin_bfd_make_debug_symbol              _bfd_nosymbols_bfd_make_debug_symbol
 #define bfd_plugin_read_minisymbols                   _bfd_generic_read_minisymbols
index 4814a4b1ea852fb8754744c851f2e340437bdf81..9ee8ab5d9b8ac210b6611ee8b52d4ba1a9627685 100644 (file)
@@ -331,6 +331,7 @@ ppcboot_get_symbol_info (bfd *ignore_abfd ATTRIBUTE_UNUSED,
 #define ppcboot_bfd_is_local_label_name bfd_generic_is_local_label_name
 #define ppcboot_get_lineno _bfd_nosymbols_get_lineno
 #define ppcboot_find_nearest_line _bfd_nosymbols_find_nearest_line
+#define ppcboot_find_line _bfd_nosymbols_find_line
 #define ppcboot_find_inliner_info _bfd_nosymbols_find_inliner_info
 #define ppcboot_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol
 #define ppcboot_read_minisymbols _bfd_generic_read_minisymbols
index 87f3288a45ba4d54dbcfa7c4c617fe5c466483c7..6bc4ac922ccdd7f75bd51b0b5de131c5044576ca 100644 (file)
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -6713,6 +6713,7 @@ som_bfd_link_split_section (bfd *abfd ATTRIBUTE_UNUSED, asection *sec)
   return som_is_subspace (sec) && sec->size > 240000;
 }
 
+#define som_find_line                          _bfd_nosymbols_find_line
 #define        som_close_and_cleanup                   som_bfd_free_cached_info
 #define som_read_ar_hdr                                _bfd_generic_read_ar_hdr
 #define som_write_ar_hdr                       _bfd_generic_write_ar_hdr
index 42143c74016f3609915c061a091552ea881e1b80..9ed2080e7dabfef7d48c66cfef5ceb3f95e33135 100644 (file)
@@ -1255,6 +1255,7 @@ srec_print_symbol (bfd *abfd,
 #define srec_bfd_is_local_label_name              bfd_generic_is_local_label_name
 #define srec_get_lineno                           _bfd_nosymbols_get_lineno
 #define srec_find_nearest_line                    _bfd_nosymbols_find_nearest_line
+#define srec_find_line                            _bfd_nosymbols_find_line
 #define srec_find_inliner_info                    _bfd_nosymbols_find_inliner_info
 #define srec_make_empty_symbol                    _bfd_generic_make_empty_symbol
 #define srec_bfd_make_debug_symbol                _bfd_nosymbols_bfd_make_debug_symbol
index 81a36959d42c60e1266e3980a72c1248e2beb86d..6112aa1515a38a2c191a1640adb93f43534333c1 100644 (file)
@@ -368,7 +368,7 @@ BFD_JUMP_TABLE macros.
 .  NAME##_get_lineno, \
 .  NAME##_find_nearest_line, \
 .  _bfd_generic_find_nearest_line_discriminator, \
-.  _bfd_generic_find_line, \
+.  NAME##_find_line, \
 .  NAME##_find_inliner_info, \
 .  NAME##_bfd_make_debug_symbol, \
 .  NAME##_read_minisymbols, \
index e5f6547589b9f528ca8c6971c7fbd7a7e01f869e..2220d50c1e6a44f9b31ce00890f2b03f29d6e3d3 100644 (file)
@@ -935,6 +935,7 @@ tekhex_print_symbol (bfd *abfd,
 #define tekhex_bfd_is_local_label_name               bfd_generic_is_local_label_name
 #define tekhex_get_lineno                           _bfd_nosymbols_get_lineno
 #define tekhex_find_nearest_line                    _bfd_nosymbols_find_nearest_line
+#define tekhex_find_line                            _bfd_nosymbols_find_line
 #define tekhex_find_inliner_info                    _bfd_nosymbols_find_inliner_info
 #define tekhex_bfd_make_debug_symbol                _bfd_nosymbols_bfd_make_debug_symbol
 #define tekhex_read_minisymbols                     _bfd_generic_read_minisymbols
index b02f31ab2ab42df9d879927badadf9fecf019254..42bf36c9cd843384aa0ad32a9e35fab59f89864f 100644 (file)
@@ -794,6 +794,7 @@ versados_canonicalize_reloc (bfd *abfd,
 #define versados_bfd_is_local_label_name              bfd_generic_is_local_label_name
 #define versados_get_lineno                           _bfd_nosymbols_get_lineno
 #define versados_find_nearest_line                    _bfd_nosymbols_find_nearest_line
+#define versados_find_line                            _bfd_nosymbols_find_line
 #define versados_find_inliner_info                    _bfd_nosymbols_find_inliner_info
 #define versados_make_empty_symbol                    _bfd_generic_make_empty_symbol
 #define versados_bfd_make_debug_symbol                _bfd_nosymbols_bfd_make_debug_symbol
index b7b85269c12475ddcf35fd240c33795d18769c4c..a6344223953cb485007652c2f4107ce432cc21eb 100644 (file)
@@ -9210,6 +9210,7 @@ bfd_vms_get_data (bfd *abfd)
 #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_find_line                _bfd_nosymbols_find_line
 #define alpha_vms_bfd_is_local_label_name  vms_bfd_is_local_label_name
 
 /* Generic table.  */
index 58b23198e080cbb955e390cdefdd2ea01f3d4acf..4e2a8ab3deee4e1a94bc05f7280b91872c7487fb 100644 (file)
@@ -33,6 +33,7 @@
 #define bfd_sym_bfd_is_target_special_symbol       ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false)
 #define bfd_sym_get_lineno                          _bfd_nosymbols_get_lineno
 #define bfd_sym_find_nearest_line                   _bfd_nosymbols_find_nearest_line
+#define bfd_sym_find_line                           _bfd_nosymbols_find_line
 #define bfd_sym_find_inliner_info                   _bfd_nosymbols_find_inliner_info
 #define bfd_sym_bfd_make_debug_symbol               _bfd_nosymbols_bfd_make_debug_symbol
 #define bfd_sym_read_minisymbols                    _bfd_generic_read_minisymbols
This page took 0.043535 seconds and 4 git commands to generate.