diff options
author | Per Bothner <per@bothner.com> | 1992-12-22 23:40:27 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-12-22 23:40:27 +0000 |
commit | 0e238aa74b140ff264f366c6dc62404170bef0e8 (patch) | |
tree | 09e66efb5ceb5f5e46bda2637d376e0774e32f31 /bfd/coffcode.h | |
parent | cc9a3bd637082ba8a2ca35513b0995055109f04c (diff) | |
download | gdb-0e238aa74b140ff264f366c6dc62404170bef0e8.zip gdb-0e238aa74b140ff264f366c6dc62404170bef0e8.tar.gz gdb-0e238aa74b140ff264f366c6dc62404170bef0e8.tar.bz2 |
* bfd-in.h: New macros bfd_asymbol_bfd and bfd_asymbol_flavour;
perhaps we can later remove the the_bfd field from each symbol.
* syms.c (struct symbol_cache_entry): Remove unused field
app_data. Add comment noting that the_bfd is almost redundant,
but not quite.
* aoutx.h, coff-a29k.c, coff-i386.c, coff-i960.c, coffcode.h:
Use new macros bfd_asymbol_bfd and bfd_asymbol_flavour.
* hppa.c (fill_spaces): Make slightly more rebust.
* configure.in: Allow std-host as the "default" host.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 2386acf..fe10087 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -1415,7 +1415,7 @@ DEFUN(coff_count_linenumbers,(abfd), for (p = abfd->outsymbols, i = 0; i < limit; i++, p++) { asymbol *q_maybe = *p; - if (q_maybe->the_bfd->xvec->flavour == bfd_target_coff_flavour) { + if (bfd_asymbol_flavour(q_maybe) == bfd_target_coff_flavour) { coff_symbol_type *q = coffsymbol(q_maybe); if (q->lineno) { /* @@ -1447,10 +1447,10 @@ DEFUN(coff_symbol_from,(ignore_abfd, symbol), bfd *ignore_abfd AND asymbol *symbol) { - if (symbol->the_bfd->xvec->flavour != bfd_target_coff_flavour) + if (bfd_asymbol_flavour(symbol) != bfd_target_coff_flavour) return (coff_symbol_type *)NULL; - if (symbol->the_bfd->tdata.coff_obj_data == (coff_data_type*)NULL) + if (bfd_asymbol_bfd(symbol)->tdata.coff_obj_data == (coff_data_type*)NULL) return (coff_symbol_type *)NULL; return (coff_symbol_type *) symbol; @@ -1769,7 +1769,7 @@ DEFUN(coff_write_alien_symbol,(abfd, symbol, written), { coff_symbol_type *c = coff_symbol_from(abfd, symbol); if (c != (coff_symbol_type *)NULL) { - native->u.syment.n_flags = c->symbol.the_bfd->flags; + native->u.syment.n_flags = bfd_asymbol_bfd(&c->symbol)->flags; } } #endif @@ -2015,7 +2015,8 @@ DEFUN(coff_write_linenumbers,(abfd), /* Find all the linenumbers in this section */ while (*q) { asymbol *p = *q; - alent *l = BFD_SEND(p->the_bfd, _get_lineno, (p->the_bfd, p)); + alent *l = + BFD_SEND(bfd_asymbol_bfd(p), _get_lineno, (bfd_asymbol_bfd(p), p)); if (l) { /* Found a linenumber entry, output */ struct internal_lineno out; @@ -3658,7 +3659,7 @@ SUBSUBSECTION #ifndef CALC_ADDEND #define CALC_ADDEND(abfd, ptr, reloc, cache_ptr) \ - if (ptr && ptr->the_bfd == abfd \ + if (ptr && bfd_asymbol_bfd(ptr) == abfd \ && ((ptr->flags & BSF_OLD_COMMON)== 0)) \ { \ cache_ptr->addend = -(ptr->section->vma + ptr->value); \ |