diff options
author | Richard Henderson <rth@redhat.com> | 1998-05-05 23:49:26 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1998-05-05 23:49:26 +0000 |
commit | 4aa65bb8c1e9ce165e775bef10f0ecc88baa650c (patch) | |
tree | f85ea919c384ab408aab4df5c5054d659d215f82 /bfd/syms.c | |
parent | 4c2cea9dbd2fd068337a6e893ac56cdcc0af4a08 (diff) | |
download | gdb-4aa65bb8c1e9ce165e775bef10f0ecc88baa650c.zip gdb-4aa65bb8c1e9ce165e775bef10f0ecc88baa650c.tar.gz gdb-4aa65bb8c1e9ce165e775bef10f0ecc88baa650c.tar.bz2 |
* srec.c (srec_write_symbols): Use bfd_is_local_label rather than
an ad-hoc test. Kill bogus #if 0 code.
* syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
PR 13455
Diffstat (limited to 'bfd/syms.c')
-rw-r--r-- | bfd/syms.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -354,6 +354,8 @@ bfd_is_local_label (abfd, sym) return false; if (sym->name == NULL) return false; + if (sym->flags & BSF_DEBUGGING) + return true; return bfd_is_local_label_name (abfd, sym->name); } @@ -728,9 +730,9 @@ struct indexentry bfd_vma val; bfd_byte *stab; bfd_byte *str; - bfd_byte *directory_name; - bfd_byte *file_name; - bfd_byte *function_name; + char *directory_name; + char *file_name; + char *function_name; }; /* Compare two indexentry structures. This is called via qsort. */ @@ -774,7 +776,7 @@ struct stab_find_info struct indexentry *cached_indexentry; bfd_vma cached_offset; bfd_byte *cached_stab; - bfd_byte *cached_file_name; + char *cached_file_name; #endif /* Saved ptr to malloc'ed filename. */ |