From 4fc9d7c70e5b207b576e156276d1951bfd38e0ac Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Tue, 12 Oct 1993 23:55:13 +0000 Subject: [PATCH] * 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). --- gdb/ChangeLog | 5 +++++ gdb/stabsread.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 88a4b9bf245..fff55be8f9e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ Tue Oct 12 08:59:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * 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). + * inflow.c: Use 0 (standard input) not scb->fd. (terminal_ours_1): If printing warning, don't claim it happened in terminal_inferior. diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 667f5192904..f7b817eff23 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); -- 2.30.2