X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fcommon%2Fsim-basics.h;h=b6bdea77e9691a64c07829e2faf7740d2fe67862;hb=05e682e3be7e3d9d63ec358dcf8943fd200545cb;hp=1d9c99cc036dfbd41684d3a03655eac48fe1ef8d;hpb=618b526e31d3df71e9526a0753271624a568564e;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/common/sim-basics.h b/sim/common/sim-basics.h index 1d9c99cc03..b6bdea77e9 100644 --- a/sim/common/sim-basics.h +++ b/sim/common/sim-basics.h @@ -1,6 +1,6 @@ /* The common simulator framework for GDB, the GNU Debugger. - Copyright 2002-2015 Free Software Foundation, Inc. + Copyright 2002-2020 Free Software Foundation, Inc. Contributed by Andrew Cagney and Red Hat. @@ -27,7 +27,7 @@ /* Basic configuration */ #ifdef HAVE_CONFIG_H -#include "cconfig.h" +#include "config.h" #endif /* Basic host dependant mess - hopefully + will @@ -48,6 +48,13 @@ extern int asprintf (char **result, const char *format, ...); #endif +#ifndef min +#define min(a, b) ((a) < (b) ? (a) : (b)) +#endif +#ifndef max +#define max(a, b) ((a) > (b) ? (a) : (b)) +#endif + /* Some versions of GCC include an attribute operator, define it */ @@ -60,7 +67,6 @@ extern int asprintf (char **result, const char *format, ...); /* Global types that code manipulates */ -typedef struct _device device; struct hw; struct _sim_fpu; @@ -138,10 +144,11 @@ typedef enum { #include "sim-bits.h" #include "sim-endian.h" #include "sim-signal.h" -#include "sim-arange.h" #include "sim-utils.h" +#include "libiberty.h" + /* Note: Only the simpler interfaces are defined here. More heavy weight objects, such as core and events, are defined in the more serious sim-base.h header. */