aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk.tcl
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1995-01-26 02:27:06 +0000
committerStu Grossman <grossman@cygnus>1995-01-26 02:27:06 +0000
commitb66051ec1950ddd647fbfa629bcec40ba8bd5d25 (patch)
treeffc98ed0640a34c74cdbd2bd5d623f42c6a394e7 /gdb/gdbtk.tcl
parentee3a45e7b7974472247806e364a034a230b3d61e (diff)
downloadgdb-b66051ec1950ddd647fbfa629bcec40ba8bd5d25.zip
gdb-b66051ec1950ddd647fbfa629bcec40ba8bd5d25.tar.gz
gdb-b66051ec1950ddd647fbfa629bcec40ba8bd5d25.tar.bz2
* gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
found. * gdbtk.tcl: Initialize expr_update_list() to prevent errors when popping up expression window for the first time.
Diffstat (limited to 'gdb/gdbtk.tcl')
-rw-r--r--gdb/gdbtk.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbtk.tcl b/gdb/gdbtk.tcl
index f44dc74..2df9cf0 100644
--- a/gdb/gdbtk.tcl
+++ b/gdb/gdbtk.tcl
@@ -31,6 +31,7 @@ set cfunc NIL
set line_numbers 1
set breakpoint_file(-1) {[garbage]}
set disassemble_with_source nosource
+set expr_update_list(0) 0
#option add *Foreground Black
#option add *Background White