diff options
author | David MacKenzie <djm@cygnus> | 1993-05-21 21:06:25 +0000 |
---|---|---|
committer | David MacKenzie <djm@cygnus> | 1993-05-21 21:06:25 +0000 |
commit | 93b4f01814360ca78460944b64eedd721cc31832 (patch) | |
tree | 06f51c449beba8184df58602f5a6c76b81fc2910 /bfd | |
parent | 5e27c0544a23d6bfffe6e0e075041a9b3be22b6c (diff) | |
download | gdb-93b4f01814360ca78460944b64eedd721cc31832.zip gdb-93b4f01814360ca78460944b64eedd721cc31832.tar.gz gdb-93b4f01814360ca78460944b64eedd721cc31832.tar.bz2 |
Move printing from bfd to nm and add POSIX and SysV formats.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/libelf.h | 2 | ||||
-rw-r--r-- | bfd/sco-core.c | 3 | ||||
-rw-r--r-- | bfd/targets.c | 10 |
3 files changed, 13 insertions, 2 deletions
diff --git a/bfd/libelf.h b/bfd/libelf.h index ad0da24..9cd9b16 100644 --- a/bfd/libelf.h +++ b/bfd/libelf.h @@ -65,6 +65,8 @@ extern unsigned int elf_canonicalize_reloc PARAMS ((bfd *, sec_ptr, extern asymbol *elf_make_empty_symbol PARAMS ((bfd *)); extern void elf_print_symbol PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type)); +extern void elf_get_symbol_info PARAMS ((bfd *, asymbol *, + symbol_info *)); extern alent *elf_get_lineno PARAMS ((bfd *, asymbol *)); extern boolean elf_set_arch_mach PARAMS ((bfd *, enum bfd_architecture, unsigned long)); diff --git a/bfd/sco-core.c b/bfd/sco-core.c index a77a9ce..fa36b77 100644 --- a/bfd/sco-core.c +++ b/bfd/sco-core.c @@ -232,6 +232,9 @@ sco_core_file_matches_executable_p (core_bfd, exec_bfd) #define sco_print_symbol (PROTO (void, (*), \ (bfd *, PTR, struct symbol_cache_entry *, \ bfd_print_symbol_type))) bfd_false +#define sco_get_symbol_info (PROTO (void, (*), \ + (bfd *, struct symbol_cache_entry *, \ + symbol_info *))) bfd_false #define sco_get_lineno (PROTO (alent *, (*), \ (bfd *, struct symbol_cache_entry *))) bfd_nullvoidptr #define sco_set_arch_mach (PROTO (boolean, (*), \ diff --git a/bfd/targets.c b/bfd/targets.c index f9ba26d..0fbf6ac 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -261,6 +261,10 @@ Symbols and relocations . struct symbol_cache_entry *, . bfd_print_symbol_type)); .#define bfd_print_symbol(b,p,s,e) BFD_SEND(b, _bfd_print_symbol, (b,p,s,e)) +. void (*_bfd_get_symbol_info) PARAMS ((bfd *, +. struct symbol_cache_entry *, +. symbol_info *)); +.#define bfd_get_symbol_info(b,p,e) BFD_SEND(b, _bfd_get_symbol_info, (b,p,e)) . alent * (*_get_lineno) PARAMS ((bfd *, struct symbol_cache_entry *)); . @@ -372,7 +376,9 @@ extern bfd_target h8300coff_vec; extern bfd_target h8500coff_vec; extern bfd_target z8kcoff_vec; extern bfd_target we32kcoff_vec; -#ifdef HOST_HPPAHPUX +extern bfd_target shcoff_vec; + +#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) extern bfd_target hppa_vec; #endif @@ -430,7 +436,7 @@ bfd_target *target_vector[] = { &m68kcoff_vec, &a29kcoff_big_vec, &rs6000coff_vec, -#ifdef HOST_HPPAHPUX +#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) &hppa_vec, #endif &we32kcoff_vec, |