gdb: remove TYPE_CODE macro
[deliverable/binutils-gdb.git] / gdb / cli / cli-cmds.c
index 104d273812f2a21a69f652a9979eba9a87049838..58e9cf319569a390b0765da4e3bc34614293d7fc 100644 (file)
@@ -1912,8 +1912,8 @@ setting_cmd (const char *fnname, struct cmd_list_element *showlist,
 
   struct type *type0 = check_typedef (value_type (argv[0]));
 
-  if (TYPE_CODE (type0) != TYPE_CODE_ARRAY
-      && TYPE_CODE (type0) != TYPE_CODE_STRING)
+  if (type0->code () != TYPE_CODE_ARRAY
+      && type0->code () != TYPE_CODE_STRING)
     error (_("First argument of %s must be a string."), fnname);
 
   const char *a0 = (const char *) value_contents (argv[0]);
This page took 0.023295 seconds and 4 git commands to generate.