aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-12 23:55:13 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-12 23:55:13 +0000
commit4fc9d7c70e5b207b576e156276d1951bfd38e0ac (patch)
tree82544b34f9f6322e44d8136a580bd421ef5f30d0 /gdb/stabsread.c
parent39ad69d825615dcbc472dd59d7eb5c960f514240 (diff)
downloadgdb-4fc9d7c70e5b207b576e156276d1951bfd38e0ac.zip
gdb-4fc9d7c70e5b207b576e156276d1951bfd38e0ac.tar.gz
gdb-4fc9d7c70e5b207b576e156276d1951bfd38e0ac.tar.bz2
* stabsread.c (read_type): Treat a negative type number at the start
of a type as a type reference, not as a definition of a type with "50=" omitted. This makes things work on the RS/6000 again (the 14 Sep 1993 change broke it).
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 667f519..f7b817e 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -1219,7 +1219,8 @@ read_type (pp, objfile)
for instance in a two-dimensional array declared with type
"ar1;1;10;ar1;1;10;4". */
if ((**pp >= '0' && **pp <= '9')
- || **pp == '(')
+ || **pp == '('
+ || **pp == '-')
{
if (read_type_number (pp, typenums) != 0)
return error_type (pp);