aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-12-22 01:53:33 +0000
committerStu Grossman <grossman@cygnus>1992-12-22 01:53:33 +0000
commitd9a30dc6c50d7ebadbea2b5cd0d2711e90c8c5cb (patch)
treeccd931f7df792bae07c6968dddd1b4d5a470df84
parent205d660d5953fe51087757e8e89804cfbb13ae2b (diff)
downloadgdb-d9a30dc6c50d7ebadbea2b5cd0d2711e90c8c5cb.zip
gdb-d9a30dc6c50d7ebadbea2b5cd0d2711e90c8c5cb.tar.gz
gdb-d9a30dc6c50d7ebadbea2b5cd0d2711e90c8c5cb.tar.bz2
* hppa.c: Conditionalize on HOST_HPPAHPUX instead of hp9000s800.
Get rid of HPPA/BSD specific code. That will go somewhere else someday. * (fill_spaces): Don't spin forever and die if you don't find $MILLICODE$ subspace. * (hppa_object_p): Make sure that we have a real honest-to-cthulu exec file! * (hppa_core_file_failing_signal, hppa_core_file_failing_command): Make these work for HPUX. * (make_bfd_asection): New routine to make section creation a little easier. * (hppa_core_file_p): Completely rewrite, leave out bugs. * libhppa.h: #include the right system files. Redefine all of the structs/macros for hacking core files to use more sensible HPUX core file structures. * targets.c (target_vector): Conditionalize hppa_vec on HOST_HPPAHPUX, not hp9000s800. * hosts/hppahpux.h: #include stdlib.h to get correct decls for malloc and realloc. #define HOST_HPPAHPUX.
-rw-r--r--bfd/hosts/hppahpux.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/hosts/hppahpux.h b/bfd/hosts/hppahpux.h
index a7bf374..f58bd7e 100644
--- a/bfd/hosts/hppahpux.h
+++ b/bfd/hosts/hppahpux.h
@@ -7,6 +7,9 @@
#include <string.h>
#include <sys/file.h>
#include <memory.h>
+#include <stdlib.h>
+
+#define HOST_HPPAHPUX
void free();
@@ -31,9 +34,6 @@ rename(from, to)
}
#endif
-extern PTR EXFUN(malloc,(unsigned));
-extern PTR EXFUN(realloc, (PTR, unsigned));
-
/* EXACT TYPES */
typedef char int8e_type;
typedef unsigned char uint8e_type;