aboutsummaryrefslogtreecommitdiff
path: root/gdb/paread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-14 17:32:45 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-14 17:32:45 +0000
commit1225fcbd24a9752c33d66b4db24b11855c44c017 (patch)
treee9eba8257b386ec67328a282e99db9bca3eee925 /gdb/paread.c
parent899931b638db757dc117885d367e2cded05332af (diff)
downloadgdb-1225fcbd24a9752c33d66b4db24b11855c44c017.zip
gdb-1225fcbd24a9752c33d66b4db24b11855c44c017.tar.gz
gdb-1225fcbd24a9752c33d66b4db24b11855c44c017.tar.bz2
* paread.c: Include <time.h> before libbfd.h.
* paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
Diffstat (limited to 'gdb/paread.c')
-rw-r--r--gdb/paread.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/paread.c b/gdb/paread.c
index b2b8f07..1ea8891 100644
--- a/gdb/paread.c
+++ b/gdb/paread.c
@@ -20,6 +20,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "defs.h"
#include "bfd.h"
+#include <time.h> /* For time_t in libbfd.h. */
#include "libbfd.h"
#include "som.h"
#include <syms.h>
@@ -33,6 +34,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <string.h>
#include "demangle.h"
#include <sys/file.h>
+
+/* Size of n_value and n_strx fields in a stab symbol. */
+#define BYTES_IN_WORD 4
+
#include "aout/aout64.h"
/* Various things we might complain about... */
@@ -417,6 +422,9 @@ pa_symfile_init (objfile)
if (!DBX_TEXT_SECT (objfile))
error ("Can't find .text section in symbol file");
+ /* FIXME: I suspect this should be external_nlist. The size of host
+ types like long and bfd_vma should not affect how we read the
+ file. */
DBX_SYMBOL_SIZE (objfile) = sizeof (struct internal_nlist);
DBX_SYMCOUNT (objfile) = bfd_section_size (sym_bfd, stabsect)
/ DBX_SYMBOL_SIZE (objfile);