From: fnasser Date: Tue, 8 Aug 2000 22:14:16 +0000 (+0000) Subject: 2000-08-08 Fernando Nasser X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1937e991067d9caed8da51292a2d6373649e2958;p=pf3gnuchains%2Fpf3gnuchains3x.git 2000-08-08 Fernando Nasser * srctxtwin.itb (LoadFromCache): Do not cache if cannot stat the file. This lead to problems trying to access a incomplete cache entry later. --- diff --git a/gdb/gdbtk/library/ChangeLog b/gdb/gdbtk/library/ChangeLog index 27b21b516c..8530112722 100644 --- a/gdb/gdbtk/library/ChangeLog +++ b/gdb/gdbtk/library/ChangeLog @@ -1,3 +1,8 @@ +2000-08-08 Fernando Nasser + + * srctxtwin.itb (LoadFromCache): Do not cache if cannot stat the file. + This lead to problems trying to access a incomplete cache entry later. + 2000-06-06 Fernando Nasser * util.tcl (find_iwidgets_library): Add missing global declaration diff --git a/gdb/gdbtk/library/srctextwin.itb b/gdb/gdbtk/library/srctextwin.itb index 023228d101..2c209f15e8 100644 --- a/gdb/gdbtk/library/srctextwin.itb +++ b/gdb/gdbtk/library/srctextwin.itb @@ -2489,7 +2489,6 @@ body SrcTextWin::LoadFromCache {w name asm lib} { } else { debug "name=$name" - set Stwc($full_name:pane) pane$filenum # If we are trying to load a source file, check the time # to see if we need to update it. If we can't stat the # file then we probably can't open it either, so error @@ -2500,6 +2499,7 @@ body SrcTextWin::LoadFromCache {w name asm lib} { debug "Could not stat file \"$name\" - \"$file_time\"" return -1 } else { + set Stwc($full_name:pane) pane$filenum set Stwc($name:mtime) $file_time } } else { @@ -2507,7 +2507,8 @@ body SrcTextWin::LoadFromCache {w name asm lib} { # check whether the executable is newer than the cached # disassembly. For mixed files, we need to check BOTH # the source file mtime, and the executable time. - + + set Stwc($full_name:pane) pane$filenum set Stwc($name:mtime) 0 }