aboutsummaryrefslogtreecommitdiff
path: root/bfd/evax-alpha.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-02 19:49:01 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-02 19:49:01 +0000
commitbf53bd9faab2babf447b569a03f04663abece21c (patch)
tree9f2442843f6d4b91603aad85a57cd57ff45aab36 /bfd/evax-alpha.c
parent1259da3e77b03cb56b4d2a0144587b4f95cce5c9 (diff)
downloadgdb-bf53bd9faab2babf447b569a03f04663abece21c.zip
gdb-bf53bd9faab2babf447b569a03f04663abece21c.tar.gz
gdb-bf53bd9faab2babf447b569a03f04663abece21c.tar.bz2
Wed Oct 2 15:46:45 1996 Klaus Kaempf <kkaempf@progis.de>
openVMS/Alpha: Provide filename and case_hack flags via symbol table from gas. Add case_hack code for symbol output from vax/vms. * evax-alpha.c (evax_initialize): Remove filename handling, filename is provided via symbol table. (evax_get_symtab): Use local symbol count when setting up table. * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when debugging. (_bfd_evax_write_egsd): Skip file name symbol. * evax-emh.c (get_vms_time_string): Local function now. (_bfd_evax_write_emh): Extract source filename and case_hack flags from symbol table. * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names through _bfd_evax_case_hack_symbol. * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New functions. (_bfd_evax_basename): Removed. (_bfd_get_vms_time_string): Moved to evax-emh.c. * evax.h (evax_private_data_struct): Remove filename. (flag_hash_long_names, flag_show_after_trunc, flag_no_hash_mixed_case, vms_name_mapping): New flags for vms_case_hack.
Diffstat (limited to 'bfd/evax-alpha.c')
-rw-r--r--bfd/evax-alpha.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/bfd/evax-alpha.c b/bfd/evax-alpha.c
index 20a5a97..a13ae6e 100644
--- a/bfd/evax-alpha.c
+++ b/bfd/evax-alpha.c
@@ -196,7 +196,6 @@ evax_initialize (abfd)
PRIV(buf_size) = 0;
PRIV(rec_length) = 0;
PRIV(file_format) = FF_UNKNOWN;
- PRIV(filename) = NULL;
PRIV(fixup_done) = false;
PRIV(sections) = NULL;
@@ -530,12 +529,6 @@ evax_close_and_cleanup (abfd)
}
PRIV(buf_size) = 0;
- if (PRIV(filename) != NULL)
- {
- free (PRIV(filename));
- PRIV(filename) = NULL;
- }
-
if (PRIV(output_buf) != 0)
{
free (PRIV(output_buf));
@@ -1010,9 +1003,9 @@ evax_get_symtab (abfd, symbols)
PRIV(symcache) = symbols;
bfd_hash_traverse(PRIV(evax_symbol_table), copy_symbols, (PTR)abfd);
- symbols[bfd_get_symcount(abfd)] = NULL;
+ symbols[PRIV(egsd_sym_count)] = NULL;
- return bfd_get_symcount(abfd);
+ return PRIV(egsd_sym_count);
}