aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorDon Howard <dhoward@redhat.com>2001-08-08 16:15:38 +0000
committerDon Howard <dhoward@redhat.com>2001-08-08 16:15:38 +0000
commita1bab801d91011b887ff29d88a608cb7deccbfab (patch)
treecbc68b8f410aff51d1263aa9a2809871013b8548 /gdb/stabsread.c
parentfce3099f60707b398ca7895064db846878518c80 (diff)
downloadgdb-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.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c4
1 files changed, 2 insertions, 2 deletions
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 '@':