diff options
author | Daniel Jacobowitz <dan@debian.org> | 2007-07-03 01:23:01 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2007-07-03 01:23:01 +0000 |
commit | cadf451d52ea63cfea07dc93ffeca451dbb0b0ff (patch) | |
tree | 67520e29d29a6bd2ced7ed72bd124adeba038195 /gdb/target-descriptions.c | |
parent | 5f6bbf4c096fa264ba6d338586e32bd0b370e9e3 (diff) | |
download | gdb-cadf451d52ea63cfea07dc93ffeca451dbb0b0ff.tar.gz |
* target-descriptions.c (tdesc_create_reg): Do not set reg->type
to NULL.
* cli/cli-script.c (build_command_line): Update NULL check.
Diffstat (limited to 'gdb/target-descriptions.c')
-rw-r--r-- | gdb/target-descriptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index 6df4547e8bf..f15340d9e3c 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -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. */ |