aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-descriptions.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-07-03 01:23:01 +0000
committerDaniel Jacobowitz <drow@false.org>2007-07-03 01:23:01 +0000
commitc8c122932061ba5c68cc6893262990463162de1c (patch)
tree5b0145f6985180ebca57de83a9c9263c6ccc3408 /gdb/target-descriptions.c
parent7877e97730123929da00a6fd91c7b8257f26d027 (diff)
downloadgdb-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.c2
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. */