From a1bab801d91011b887ff29d88a608cb7deccbfab Mon Sep 17 00:00:00 2001 From: Don Howard Date: Wed, 8 Aug 2001 16:15:38 +0000 Subject: [PATCH] 2001-08-08 Don Howard * stabsread.c (read_type): Add support for const and volatile modifiers. --- gdb/ChangeLog | 5 +++++ gdb/stabsread.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 938e484adc0..ff0205f3a19 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-08-08 Don Howard + + * stabsread.c (read_type): Add support for const and volatile + modifiers. + 2001-08-02 Daniel Jacobowitz * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 00857e05d9b..87cf76801c3 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -2586,7 +2586,7 @@ again: if (type_descriptor == 'c' && !os9k_stabs) return error_type (pp, objfile); type = read_type (pp, objfile); - /* FIXME! For now, we ignore const and volatile qualifiers. */ + type = make_cv_type (1, TYPE_VOLATILE (type), type, 0); break; case 'B': /* Volatile qual on some type (Sun) */ @@ -2596,7 +2596,7 @@ again: if (type_descriptor == 'i' && !os9k_stabs) return error_type (pp, objfile); type = read_type (pp, objfile); - /* FIXME! For now, we ignore const and volatile qualifiers. */ + type = make_cv_type (TYPE_CONST (type), 1, type, 0); break; case '@': -- 2.30.2