aboutsummaryrefslogtreecommitdiff
path: root/bfd/hppa.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-12-22 23:40:27 +0000
committerPer Bothner <per@bothner.com>1992-12-22 23:40:27 +0000
commit0e238aa74b140ff264f366c6dc62404170bef0e8 (patch)
tree09e66efb5ceb5f5e46bda2637d376e0774e32f31 /bfd/hppa.c
parentcc9a3bd637082ba8a2ca35513b0995055109f04c (diff)
downloadgdb-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/hppa.c')
-rw-r--r--bfd/hppa.c6
1 files changed, 5 insertions, 1 deletions
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);