aboutsummaryrefslogtreecommitdiff
path: root/gdb/gmagic.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1995-11-28 19:33:22 +0000
committerFred Fish <fnf@specifix.com>1995-11-28 19:33:22 +0000
commitbfe8f5161965bb0b897ec039d52dfb7387a8050b (patch)
tree5595c1c592ff8a0bfc84b21eae65a27e1ce54c18 /gdb/gmagic.h
parentc6e4e8349639b10c67bdfe0f3b321168565edbbb (diff)
downloadgdb-bfe8f5161965bb0b897ec039d52dfb7387a8050b.zip
gdb-bfe8f5161965bb0b897ec039d52dfb7387a8050b.tar.gz
gdb-bfe8f5161965bb0b897ec039d52dfb7387a8050b.tar.bz2
* magic.h: Renamed to gmagic.h to avoid <magic.h> conflict.
* magic.c: Renamed to gmagic.c in sympathy. * eval.c, gmagic.c, config/tm-magic.h: Include "gmagic.h" rather than "magic.h".
Diffstat (limited to 'gdb/gmagic.h')
-rw-r--r--gdb/gmagic.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/gdb/gmagic.h b/gdb/gmagic.h
new file mode 100644
index 0000000..63e8e20
--- /dev/null
+++ b/gdb/gmagic.h
@@ -0,0 +1,32 @@
+/* gmagic.h - Interface to the General Magic debugger extras */
+
+/* object framework definitions, from FrameworkDefines.asm.h and Generic.h */
+
+#define kIDBitObject 31 /* set for valid object IDs */
+#define kIDBitUsable 26 /* set if objectID is usable */
+
+/* Return nonzero if <object> is a valid ObjectID */
+
+#define IsObjectID(object) (((unsigned long)(object) & 0x80000000) != 0)
+
+#define kSizeOfObjectHeader 12 /* size of object header in bytes */
+
+/* public interfaces */
+
+extern void
+init_magic PARAMS ((void));
+
+extern void
+magic_create_inferior_hook PARAMS ((void));
+
+extern struct type *
+type_of_object PARAMS ((CORE_ADDR object));
+
+extern CORE_ADDR
+baseptr_of_object PARAMS ((CORE_ADDR object));
+
+extern int
+magic_in_dispatcher PARAMS ((CORE_ADDR stop_pc, char *name));
+
+extern CORE_ADDR
+magic_skip_dispatcher PARAMS ((CORE_ADDR stop_pc));