to NULL.
* cli/cli-script.c (build_command_line): Update NULL check.
+2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * target-descriptions.c (tdesc_create_reg): Do not set reg->type
+ to NULL.
+
+ * cli/cli-script.c (build_command_line): Update NULL check.
+
2007-07-02 Michael Snyder <msnyder@access-company.com>
* p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
if (args == NULL && (type == if_control || type == while_control))
error (_("if/while commands require arguments."));
+ gdb_assert (args != NULL);
cmd = (struct command_line *) xmalloc (sizeof (struct command_line));
cmd->next = NULL;
= (struct command_line **) xmalloc (sizeof (struct command_line *)
* cmd->body_count);
memset (cmd->body_list, 0, sizeof (struct command_line *) * cmd->body_count);
- if (args != NULL)
- cmd->line = savestring (args, strlen (args));
+ cmd->line = savestring (args, strlen (args));
return cmd;
}
reg->save_restore = save_restore;
reg->group = group ? xstrdup (group) : NULL;
reg->bitsize = bitsize;
- reg->type = type ? xstrdup (type) : NULL;
+ reg->type = type ? xstrdup (type) : xstrdup ("<unknown>");
/* If the register's type is target-defined, look it up now. We may not
have easy access to the containing feature when we want it later. */