* target-descriptions.c (tdesc_create_reg): Do not set reg->type

to NULL.

	* cli/cli-script.c (build_command_line): Update NULL check.
This commit is contained in:
Daniel Jacobowitz 2007-07-03 01:23:01 +00:00
parent 7877e97730
commit c8c1229320
3 changed files with 10 additions and 3 deletions

View file

@ -792,7 +792,7 @@ tdesc_create_reg (struct tdesc_feature *feature, const char *name,
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. */