aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-02-16 19:43:12 +0000
committerAndrew Cagney <cagney@redhat.com>2004-02-16 19:43:12 +0000
commitfd33e6cbf81f2bc8f7332e06286634f59f1d57b3 (patch)
tree013515fb6c2af907c6ff25fe24b54d72a269bc0e /gdb
parentc324d747ca58c10261f15ec141cc5f64d708f680 (diff)
downloadgdb-fd33e6cbf81f2bc8f7332e06286634f59f1d57b3.zip
gdb-fd33e6cbf81f2bc8f7332e06286634f59f1d57b3.tar.gz
gdb-fd33e6cbf81f2bc8f7332e06286634f59f1d57b3.tar.bz2
2004-02-16 Andrew Cagney <cagney@redhat.com>
* printcmd.c (display_command): Check that EXP isn't NULL. Fix suggested by Joshua Neuheisel
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/printcmd.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6f624ce..9650674 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2004-02-16 Andrew Cagney <cagney@redhat.com>
+ * printcmd.c (display_command): Check that EXP isn't NULL. Fix
+ suggested by Joshua Neuheisel
+
* configure.in: Always check for curses, including pdcurses.
Warn, instead of error, when no curses are found. Enable TUI when
curses is available.
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 1cea480..62ca095 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1364,7 +1364,7 @@ display_command (char *exp, int from_tty)
#if defined(TUI)
/* NOTE: cagney/2003-02-13 The `tui_active' was previously
`tui_version'. */
- if (tui_active && *exp == '$')
+ if (tui_active && exp != NULL && *exp == '$')
display_it = (tui_set_layout_for_display_command (exp) == TUI_FAILURE);
#endif