aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-03-09 17:08:25 +0000
committerDaniel Jacobowitz <drow@false.org>2004-03-09 17:08:25 +0000
commit44e1a9eb2556723d464e53f3bf2fd34b6cf5aa13 (patch)
tree5bbbfbd12b3dc6481d2dfb946a4cf5fd3fc3b335 /gdb/gdbtypes.c
parent283014616ee05c93c7164a20384a29d5e43550af (diff)
downloadgdb-44e1a9eb2556723d464e53f3bf2fd34b6cf5aa13.zip
gdb-44e1a9eb2556723d464e53f3bf2fd34b6cf5aa13.tar.gz
gdb-44e1a9eb2556723d464e53f3bf2fd34b6cf5aa13.tar.bz2
* arm-tdep.c (arm_use_struct_convention): Look through typedefs.
* gdbtypes.c (check_typedef): Update comments.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 2dc3a46..1349ffb 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -1343,6 +1343,12 @@ get_destructor_fn_field (struct type *t, int *method_indexp, int *field_indexp)
return 0;
}
+static void
+stub_noname_complaint (void)
+{
+ complaint (&symfile_complaints, "stub type has NULL name");
+}
+
/* Added by Bryan Boreham, Kewill, Sun Sep 17 18:07:17 1989.
If this is a stubbed struct (i.e. declared as struct foo *), see if
@@ -1356,11 +1362,10 @@ get_destructor_fn_field (struct type *t, int *method_indexp, int *field_indexp)
This used to be coded as a macro, but I don't think it is called
often enough to merit such treatment. */
-static void
-stub_noname_complaint (void)
-{
- complaint (&symfile_complaints, "stub type has NULL name");
-}
+/* Find the real type of TYPE. This function returns the real type, after
+ removing all layers of typedefs and completing opaque or stub types.
+ Completion changes the TYPE argument, but stripping of typedefs does
+ not. */
struct type *
check_typedef (struct type *type)