aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-05-28 18:27:28 +0000
committerDaniel Jacobowitz <drow@false.org>2005-05-28 18:27:28 +0000
commit3b113db73fc48821f6cea1c799720303e5780a62 (patch)
tree468eb3b82ed27882874d5b9a56abc594f9629b57 /gdb
parent03f4d4c7dc56d644e94e5059d882a7f936be8874 (diff)
downloadgdb-3b113db73fc48821f6cea1c799720303e5780a62.zip
gdb-3b113db73fc48821f6cea1c799720303e5780a62.tar.gz
gdb-3b113db73fc48821f6cea1c799720303e5780a62.tar.bz2
* cli/cli-setshow.c (do_setshow_command): Partially revert previous
change. Cast to "char **" for var_string.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/cli/cli-setshow.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0b6102f..3e0d69d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
+ * cli/cli-setshow.c (do_setshow_command): Partially revert previous
+ change. Cast to "char **" for var_string.
+
+2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
+
* cp-name-parser.y (parse_escape): Revert previous change. Return
the input character by default.
diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c
index 4002953..68c0f62 100644
--- a/gdb/cli/cli-setshow.c
+++ b/gdb/cli/cli-setshow.c
@@ -301,8 +301,8 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
switch (c->var_type)
{
case var_string:
- if (((char *)c->var)[0] != '\0')
- fputstr_filtered ((char *)c->var, '"', stb->stream);
+ if (*(char **) c->var)
+ fputstr_filtered (*(char **) c->var, '"', stb->stream);
break;
case var_string_noescape:
case var_optional_filename: