aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 4130692..9c703e6 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -3073,6 +3073,18 @@ read_enum_type (pp, type, objfile)
return error_type (pp);
}
+ /* The aix4 compiler emits an extra field before the enum members;
+ my guess is it's a type of some sort. Just ignore it. */
+ if (**pp == '-')
+ {
+ /* Skip over the type. */
+ while (**pp != ':')
+ (*pp)++;
+
+ /* Skip over the colon. */
+ (*pp)++;
+ }
+
/* Read the value-names and their values.
The input syntax is NAME:VALUE,NAME:VALUE, and so on.
A semicolon or comma instead of a NAME means the end. */