aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-12-27 18:56:23 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-12-27 18:56:23 +0000
commit666e7e4121e43094aa8e9b280e0fe5db23b77256 (patch)
treec3f23c0c2ecb046e4ab3af0cbb0919410edced59
parent30ae2c91cb74cfd1a6e76262b93c65486dcdcbc9 (diff)
downloadgdb-666e7e4121e43094aa8e9b280e0fe5db23b77256.zip
gdb-666e7e4121e43094aa8e9b280e0fe5db23b77256.tar.gz
gdb-666e7e4121e43094aa8e9b280e0fe5db23b77256.tar.bz2
* gdbtypes.h: Expand on comments for TYPE_CODE_BITSTRING and
TYPE_CODE_STRING a bit.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/gdbtypes.h12
2 files changed, 13 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2260886..f5227aa 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
Mon Dec 27 11:07:05 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * gdbtypes.h: Expand on comments for TYPE_CODE_BITSTRING and
+ TYPE_CODE_STRING a bit.
+
* m68k-tdep.c (m68k_skip_prologue, m68k_find_saved_regs):
Allow pea %fp; move.l %sp, %fp instead of link instruction to
set up the new frame.
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 1a37b8e..bf21d90 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -91,8 +91,16 @@ enum type_code
TYPE_CODE_SET, /* Pascal sets */
TYPE_CODE_RANGE, /* Range (integers within spec'd bounds) */
- TYPE_CODE_STRING, /* String types, distinct from array of char */
- TYPE_CODE_BITSTRING, /* String of bits, distinct from bool array */
+
+ /* A string type which is like an array of character but prints
+ differently (at least for CHILL). It does not contain a length
+ field as Pascal strings (for many Pascals, anyway) do; if we want
+ to deal with such strings, we should use a new type code. */
+ TYPE_CODE_STRING,
+
+ /* String of bits; like TYPE_CODE_SET but prints differently (at least
+ for CHILL). */
+ TYPE_CODE_BITSTRING,
/* Unknown type. The length field is valid if we were able to
deduce that much about the type, or 0 if we don't even know that. */