OSDN Git Service

2001-01-02 Fernando Nasser <fnasser@totem.toronto.redhat.com>
authorfnasser <fnasser>
Wed, 3 Jan 2001 03:42:19 +0000 (03:42 +0000)
committerfnasser <fnasser>
Wed, 3 Jan 2001 03:42:19 +0000 (03:42 +0000)
* library/interface.tcl (gdbtk_quit_check): Save session whenever
possible.

gdb/gdbtk/ChangeLog
gdb/gdbtk/library/interface.tcl

index a02e814..885ca10 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-02  Fernando Nasser  <fnasser@totem.toronto.redhat.com>
+
+       * library/interface.tcl (gdbtk_quit_check): Save session whenever
+       possible.
+
 2001-01-01  Fernando Nasser  <fnasser@totem.toronto.redhat.com>
 
        * library/ChangeLog-2000: New file. Entries dated 2000 moved here
index a322d5b..c00aea3 100644 (file)
@@ -222,7 +222,10 @@ proc gdbtk_quit_check {} {
     if {![gdbtk_tcl_query $msg no]} {
       return 0
     }
-  } elseif {$gdb_exe_name != ""} {
+  }
+  
+  # If we have an executable file loaded, save a session associated to it
+  if {$gdb_exe_name != ""} {
     session_save
   }
   return 1