aboutsummaryrefslogtreecommitdiff
path: root/gdb/xm-hp300bsd.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1993-02-19 06:55:31 +0000
committerJohn Gilmore <gnu@cygnus>1993-02-19 06:55:31 +0000
commit5e3d0ab075496938efe61a15c129f7464464d083 (patch)
tree9c091896b2c182a4660d8d8d4cfb813c9de4a214 /gdb/xm-hp300bsd.h
parentb9163d1aaa910ee7b98ce1180742cb065e085c15 (diff)
downloadgdb-5e3d0ab075496938efe61a15c129f7464464d083.zip
gdb-5e3d0ab075496938efe61a15c129f7464464d083.tar.gz
gdb-5e3d0ab075496938efe61a15c129f7464464d083.tar.bz2
* gcc.patch: Update for a different GCC (G++) bug.
* main.c (print_gdb_version): Update copyright year to 1993. * nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4, conditionalize this file on it. FIXME, right way is to split these into two config files. (ATTACH_DETACH): Define for BSD 4.4 (PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3. (U_REGS_OFFSET): Revise for 4.4. (REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet. * xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN, LONG_MAX into this file to avoid cpp "redefinition" warnings.
Diffstat (limited to 'gdb/xm-hp300bsd.h')
-rw-r--r--gdb/xm-hp300bsd.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/xm-hp300bsd.h b/gdb/xm-hp300bsd.h
index 5defbb5..54800fd 100644
--- a/gdb/xm-hp300bsd.h
+++ b/gdb/xm-hp300bsd.h
@@ -25,10 +25,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
-/* Avoid "INT_MIN redefined" warnings -- by defining it here, exactly
- the same as in the system <machine/machtypes.h> file. */
-#undef INT_MIN
-#define INT_MIN 0x80000000
+/* Avoid "INT_MIN redefined" preprocessor warnings -- by defining them here,
+ exactly the same as in the system <limits.h> file. */
+#define UINT_MAX 4294967295 /* max value for an unsigned int */
+#define INT_MAX 2147483647 /* max value for an int */
+#define INT_MIN (-2147483647-1) /* min value for an int */
+#define LONG_MAX 2147483647 /* max value for a long */
/* Get rid of any system-imposed stack limit if possible. */