diff options
author | Don Howard <dhoward@redhat.com> | 2001-08-08 16:15:38 +0000 |
---|---|---|
committer | Don Howard <dhoward@redhat.com> | 2001-08-08 16:15:38 +0000 |
commit | a1bab801d91011b887ff29d88a608cb7deccbfab (patch) | |
tree | cbc68b8f410aff51d1263aa9a2809871013b8548 | |
parent | fce3099f60707b398ca7895064db846878518c80 (diff) | |
download | gdb-a1bab801d91011b887ff29d88a608cb7deccbfab.zip gdb-a1bab801d91011b887ff29d88a608cb7deccbfab.tar.gz gdb-a1bab801d91011b887ff29d88a608cb7deccbfab.tar.bz2 |
2001-08-08 Don Howard <dhoward@redhat.com>
* stabsread.c (read_type): Add support for const and volatile
modifiers.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/stabsread.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 938e484..ff0205f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-08-08 Don Howard <dhoward@redhat.com> + + * stabsread.c (read_type): Add support for const and volatile + modifiers. + 2001-08-02 Daniel Jacobowitz <drow@mvista.com> * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 00857e0..87cf768 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 '@': |