aboutsummaryrefslogtreecommitdiff
path: root/gdb/cplus-dem.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-03-26 08:33:43 +0000
committerPer Bothner <per@bothner.com>1992-03-26 08:33:43 +0000
commit04f27ddc6da0958519761c5fcb778beedad8871c (patch)
tree9f9ee542a69e30b5f1ef864d63acdaf6ec68b17b /gdb/cplus-dem.c
parent88f36033ee20ae2946b8bedda58a9dfa0fc97cd3 (diff)
downloadgdb-04f27ddc6da0958519761c5fcb778beedad8871c.zip
gdb-04f27ddc6da0958519761c5fcb778beedad8871c.tar.gz
gdb-04f27ddc6da0958519761c5fcb778beedad8871c.tar.bz2
* c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
* cplus-dem.c: Support "Sc" meaning "signed char".
Diffstat (limited to 'gdb/cplus-dem.c')
-rw-r--r--gdb/cplus-dem.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/cplus-dem.c b/gdb/cplus-dem.c
index afe9ee7..4c5a2f6 100644
--- a/gdb/cplus-dem.c
+++ b/gdb/cplus-dem.c
@@ -507,6 +507,7 @@ cplus_demangle (type, arg_mode)
done = is_pointer = 1;
break;
case 'C': /* const */
+ case 'S': /* explicitly signed [char] */
case 'U': /* unsigned */
case 'V': /* volatile */
case 'F': /* function */
@@ -867,6 +868,14 @@ do_type (type, result, arg_mode)
non_empty = 1;
string_append (result, "unsigned");
break;
+ case 'S': /* signed char only */
+ *type += 1;
+ if (non_empty)
+ string_append (result, " ");
+ else
+ non_empty = 1;
+ string_append (result, "signed");
+ break;
case 'V':
*type += 1;
if (print_ansi_qualifiers)