diff options
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r-- | gdb/cli/cli-cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 6c0d780..7267d60 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -2190,7 +2190,7 @@ setting_cmd (const char *fnname, struct cmd_list_element *showlist, if (argc != 1) error (_("You can only provide one argument to %s"), fnname); - struct type *type0 = check_typedef (value_type (argv[0])); + struct type *type0 = check_typedef (argv[0]->type ()); if (type0->code () != TYPE_CODE_ARRAY && type0->code () != TYPE_CODE_STRING) |