aboutsummaryrefslogtreecommitdiff
path: root/binutils/debug.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-01-11 16:47:10 +0000
committerIan Lance Taylor <ian@airs.com>1996-01-11 16:47:10 +0000
commit36302909f2b0b51c792b8c775ac53c6d404f7d25 (patch)
tree072564bdccc3dd2764b1b1d50295fc7173fae00f /binutils/debug.h
parent761f377fecdc962ad40882e3a65df6cb12906af6 (diff)
downloadgdb-36302909f2b0b51c792b8c775ac53c6d404f7d25.zip
gdb-36302909f2b0b51c792b8c775ac53c6d404f7d25.tar.gz
gdb-36302909f2b0b51c792b8c775ac53c6d404f7d25.tar.bz2
* debug.c (debug_make_undefined_tagged_type): Make sure we are
given a kind of type we can handle. (debug_write_type): Handle undefined enums and structs. (debug_write_class_type): Handle undefined classes. * prdbg.c (pr_enum_type): Handle an undefined enum. Also comment changes to debug.h.
Diffstat (limited to 'binutils/debug.h')
-rw-r--r--binutils/debug.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/binutils/debug.h b/binutils/debug.h
index 0fed153..0c3a692 100644
--- a/binutils/debug.h
+++ b/binutils/debug.h
@@ -194,7 +194,8 @@ struct debug_write_fns
/* Push an enum type onto the type stack, given the tag, a NULL
terminated array of names and the associated values. If there is
- no tag, the tag argument will be NULL. */
+ no tag, the tag argument will be NULL. If this is an undefined
+ enum, the names and values arguments will be NULL. */
boolean (*enum_type) PARAMS ((PTR, const char *, const char **,
bfd_signed_vma *));
@@ -259,7 +260,9 @@ struct debug_write_fns
end_struct_type function. The second argument is the tag; this
will be NULL if there isn't one. The boolean argument is true
for a struct, false for a union. The unsigned int argument is
- the size. */
+ the size. If this is an undefined struct or union, the size will
+ be 0 and struct_field will not be called before end_struct_type
+ is called. */
boolean (*start_struct_type) PARAMS ((PTR, const char *, boolean,
unsigned int));