diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-07-03 01:23:01 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-07-03 01:23:01 +0000 |
commit | c8c122932061ba5c68cc6893262990463162de1c (patch) | |
tree | 5b0145f6985180ebca57de83a9c9263c6ccc3408 /gdb/target-descriptions.c | |
parent | 7877e97730123929da00a6fd91c7b8257f26d027 (diff) | |
download | gdb-c8c122932061ba5c68cc6893262990463162de1c.zip gdb-c8c122932061ba5c68cc6893262990463162de1c.tar.gz gdb-c8c122932061ba5c68cc6893262990463162de1c.tar.bz2 |
* 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 6df4547..f15340d 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. */ |