From 0e238aa74b140ff264f366c6dc62404170bef0e8 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Tue, 22 Dec 1992 23:40:27 +0000 Subject: * 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. --- bfd/hppa.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bfd/hppa.c') diff --git a/bfd/hppa.c b/bfd/hppa.c index 5ae90ee..caa887d 100644 --- a/bfd/hppa.c +++ b/bfd/hppa.c @@ -62,7 +62,7 @@ fill_spaces(abfd, file_hdr, dbx_subspace, dbx_strings_subspace) struct subspace_dictionary_record subspace; int index; /* indices of subspace entries for $TEXT$ and $GDB_DEBUG$ */ - int text_index = 0, gdb_debug_index = 0; + long text_index = 0, gdb_debug_index = -1; /* initialize in case we don't find any dbx symbols. */ dbx_subspace->subspace_length = dbx_strings_subspace->subspace_length = 0; @@ -110,6 +110,10 @@ fill_spaces(abfd, file_hdr, dbx_subspace, dbx_strings_subspace) #endif } } + + if (gdb_debug_index == -1) + return; + /* read symbols subspace and strings subspace in possibly arbitrary order. */ bfd_seek (abfd, gdb_debug_index, SEEK_SET); -- cgit v1.1