* 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:
parent
7877e97730
commit
c8c1229320
3 changed files with 10 additions and 3 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue