2004-02-16 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 16 Feb 2004 19:43:12 +0000 (19:43 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 16 Feb 2004 19:43:12 +0000 (19:43 +0000)
* printcmd.c (display_command): Check that EXP isn't NULL.  Fix
suggested by Joshua Neuheisel

gdb/ChangeLog
gdb/printcmd.c

index 6f624ceec5c3d5bbec950586f5eb9a5deb25e340..9650674f7a464844bcd279f3991c98c7085817da 100644 (file)
@@ -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.
index 1cea480b3f35cefe545f5bbb3aa9952327430838..62ca09568126c1ceab04b6276949f45d294f1b8a 100644 (file)
@@ -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