diff options
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r-- | gdb/c-valprint.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index a95f44d..6bc49c3 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -474,7 +474,11 @@ c_value_print (val, stream, format, pretty) if (TYPE_CODE (type) == TYPE_CODE_PTR && TYPE_NAME (type) == NULL && TYPE_NAME (TYPE_TARGET_TYPE (type)) != NULL && - STREQ (TYPE_NAME (TYPE_TARGET_TYPE (type)), "char")) + STREQ (TYPE_NAME (TYPE_TARGET_TYPE (type)), "char") && + !TYPE_VOLATILE (TYPE_TARGET_TYPE (type)) && + (TYPE_UNSIGNED (TYPE_TARGET_TYPE (type)) || TYPE_NOSIGN (TYPE_TARGET_TYPE (type))) && + !TYPE_VOLATILE (type) && + !TYPE_CONST (type)) { /* Print nothing */ } |