aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-basics.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-09-04 03:47:39 +0000
committerAndrew Cagney <cagney@redhat.com>1997-09-04 03:47:39 +0000
commita34abff813f4fdd5f289ea45de9e874e31e7edf3 (patch)
treef6d3be383893c3adaae166e570d5eccd71f08427 /sim/common/sim-basics.h
parent600d83316cfa68f72666d792244890789812b51a (diff)
downloadgdb-a34abff813f4fdd5f289ea45de9e874e31e7edf3.zip
gdb-a34abff813f4fdd5f289ea45de9e874e31e7edf3.tar.gz
gdb-a34abff813f4fdd5f289ea45de9e874e31e7edf3.tar.bz2
o Add modulo argument to sim_core_attach
o Add sim-memopt module - memory option processing.
Diffstat (limited to 'sim/common/sim-basics.h')
-rw-r--r--sim/common/sim-basics.h39
1 files changed, 11 insertions, 28 deletions
diff --git a/sim/common/sim-basics.h b/sim/common/sim-basics.h
index 149e6a0..e94075c 100644
--- a/sim/common/sim-basics.h
+++ b/sim/common/sim-basics.h
@@ -52,32 +52,6 @@
#endif
-
-/* Memory management with an allocator that clears memory before use. */
-
-void *zalloc (unsigned long size);
-
-#define ZALLOC(TYPE) (TYPE*)zalloc(sizeof (TYPE))
-
-void zfree(void*);
-
-
-/* Turn VALUE into a string with commas. */
-char *sim_add_commas (char *, int, unsigned long);
-
-
-/* Utilities for elapsed time reporting. */
-
-/* Opaque type, known only inside sim_elapsed_time_foo fns. */
-typedef unsigned long SIM_ELAPSED_TIME;
-
-/* Get reference point for future call to sim_time_elapsed. */
-SIM_ELAPSED_TIME sim_elapsed_time_get (void);
-
-/* Elapsed time in milliseconds since START. */
-unsigned long sim_elapsed_time_since (SIM_ELAPSED_TIME start);
-
-
/* Global types that code manipulates */
typedef struct _device device;
@@ -97,14 +71,21 @@ typedef enum _access_type {
/* Address attachement types */
-typedef enum _attach_type {
+typedef enum _attach_type
+{
attach_invalid,
attach_raw_memory,
attach_callback,
- /* ... */
+ /* attach_callback + 1, attach_callback + 2, ... */
} attach_type;
+/* Memory transfer types */
+typedef enum _transfer_type {
+ read_transfer,
+ write_transfer,
+} transfer_type;
+
/* Basic definitions - ordered so that nothing calls what comes after
it */
@@ -124,6 +105,8 @@ typedef enum _attach_type {
#include "sim-bits.h"
#include "sim-endian.h"
+#include "sim-utils.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. */