public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: James Ingham <jingham@cygnus.com>
To: insight@sourceware.cygnus.com
Subject: Patch for error when double-clicking on process in attach dialog
Date: Wed, 01 Mar 2000 17:45:00 -0000	[thread overview]
Message-ID: <14525.51319.879629.874201@leda.cygnus.com> (raw)

Hi, all...

I just checked in the following patch that fixes an error which would
arise if you double-clicked on a process in the Attach dialog if you
had not previously loaded the executable for the process.

Jim

Index: gdbtk/library/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/ChangeLog,v
retrieving revision 1.2
diff -p -r1.2 ChangeLog
*** ChangeLog   2000/02/24 03:12:58     1.2
--- ChangeLog   2000/03/02 01:41:29
***************
*** 1,3 ****
--- 1,9 ----
+ 2000-03-01  James Ingham  <jingham@leda.cygnus.com>
+ 
+       * interface.tcl (_open_file): The window which had the focus could 
+       get deleted by the vwait implicit in the tk_getOpenFile call.  So
+       check and make sure it is still around before raising it...
+ 
  2000-02-23  Keith R Seitz  <kseitz@nwlink.com>
  
          * srctextwin.ith (_highlightAsmLine): Define new method.
Index: gdbtk/library/interface.tcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/interface.tcl,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 interface.tcl
*** interface.tcl       2000/02/07 00:19:42     1.1.1.1
--- interface.tcl       2000/03/02 01:41:29
*************** proc _open_file {{file ""}} {
*** 776,784 ****
      ide_grab_support enable_all
      
      # If no one had the focus before, leave it that way (since I
!     # am not sure how this could happen...
      
!     if {$curFocus != ""} {
        raise [winfo toplevel $curFocus]
        focus $curFocus
      }
--- 776,786 ----
      ide_grab_support enable_all
      
      # If no one had the focus before, leave it that way (since I
!     # am not sure how this could happen...  Also, the vwait in 
!     # tk_getOpenFile could have allowed the curFocus window to actually
!     # be destroyed, so make sure it is still around.
      
!     if {$curFocus != "" && [winfo exists $curFocus]} {
        raise [winfo toplevel $curFocus]
        focus $curFocus
      }

                 reply	other threads:[~2000-03-01 17:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14525.51319.879629.874201@leda.cygnus.com \
    --to=jingham@cygnus.com \
    --cc=insight@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).