From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31204 invoked by alias); 21 Nov 2001 08:15:39 -0000 Mailing-List: contact insight-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 31182 invoked from network); 21 Nov 2001 08:15:35 -0000 Message-ID: <021301c1721a$05a9ba10$0100000a@dualbeast> From: "Andy Hare" To: "Ian Roxborough" Cc: References: <3BCCA38E.53B8418E@redhat.com> <011201c17133$90876e30$0100000a@dualbeast> <3BF977D4.F2B74C79@redhat.com> Subject: Re: Insight windows problems. Date: Thu, 04 Oct 2001 17:10:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2001-q4/txt/msg00050.txt.bz2 Ian, OK so now I got the crashing problem. Running under GDB shows the following at the point it crashes if this helps: $ gdb -nw arm-elf-gdb GNU gdb 5.0 (20010428-1) Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... (gdb) run Starting program: /xgcc-arm/gnu/bin/arm-elf-gdb.exe Program received signal SIGSEGV, Segmentation fault. 0x00b34555 in Tk_GetHWND (window=2426298) at /GNU-Source-Code/src/tk/win/tkWinWindow.c:150 150 return twdPtr->window.handle; (gdb) load You can't do that when your target is `child' (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /xgcc-arm/gnu/bin/arm-elf-gdb.exe Program received signal SIGSEGV, Segmentation fault. 0x00b34555 in Tk_GetHWND (window=2819414) at /GNU-Source-Code/src/tk/win/tkWinWindow.c:150 150 return twdPtr->window.handle; (gdb) p twdPtr No symbol "twdPtr" in current context. (gdb) p twdPtr->window.handle No symbol "twdPtr" in current context. (gdb) p window $1 = 1348694611 (gdb) The actual code at the crash point looks thus : HWND Tk_GetHWND(window) Window window; { TkWinDrawable *twdPtr = (TkWinDrawable *) window; return twdPtr->window.handle; } so window is passed OK but GDB claims that twdPtr does not exist, surely that can't be right can it ??? Hope this helps, if you have got any further than this then I would be pleased to aid in any way possible. Andy Hare www.ahare.btinternet.co.uk ----- Original Message ----- From: "Ian Roxborough" To: "Andy Hare" Cc: Sent: Monday, November 19, 2001 9:21 PM Subject: Re: Insight windows problems. > Hi, > > This will stop the problem you are talking about: > http://sources.redhat.com/ml/insight/2001-q4/msg00160.html > > You will run into a crashing problem after that (I've > posted emails about this as well). If I get a chance I'll > post a really nasty (but short) fix which will stop the > crashing Win32 (then hopefully I'll get time to fix the > real problem (why are the combobox popup windows not being > destroy when used in a modal dialog...). > > Anyway, nice to see you've got it compiled, > > Ian. > > Andy Hare wrote: > > > > Ian, > > > > Have you found the answer to this problem, I think it sounds like the > > problem I am having with the current CVS of Insight. It builds OK now but > > the dialogs do not get displayed. For example I cannot get the target dialog > > to appear, and if I open the source I get the source selection dialog but > > after that no other input is allowed into Insight, I have to kill it via the > > task manager. > > > > Running Windows 2K and latest cygwin. > > > > Andy Hare > > www.ahare.btinternet.co.uk > > > > ----- Original Message ----- > > From: "Ian Roxborough" > > To: > > Sent: Tuesday, October 16, 2001 9:15 PM > > Subject: Insight windows problems. > > > > > Hi, > > > > > > I'm pretty close to fixing the modal dialog problems > > > on Windows. The problem seem to be related to using > > > the "." window as a master for our transient modal windows. > > > I'm not sure if it's a Tk bug or what, but doing: > > > wm transient $top . > > > will cause the $top toplevel to assume some properties > > > of ".", namely the mapping (or lack of it). Actually > > > this may have something to do with the "wm group" a few > > > lines before: > > > wm group $top . > > > > > > Either way, changing it be: > > > wm transient $top $srcwin > > > seems to fix the dialog problem (where $srcwin is the > > > path of the source window). But now I'm seeing > > > (a related?) problem where after using a modal dialog > > > if I remove focus from Insight for two seconds Insight > > > will exit quickly and quietly. > > > > > > If I find that the exiting problem isn't related to the > > > dialog problem I'll post a patch. > > > > > > Ian. From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andy Hare" To: "Ian Roxborough" Cc: Subject: Re: Insight windows problems. Date: Wed, 21 Nov 2001 00:15:00 -0000 Message-ID: <021301c1721a$05a9ba10$0100000a@dualbeast> References: <3BCCA38E.53B8418E@redhat.com> <011201c17133$90876e30$0100000a@dualbeast> <3BF977D4.F2B74C79@redhat.com> X-SW-Source: 2001-q4/msg00351.html Message-ID: <20011121001500.7cimqy3Gtv0qhB9FIxFWaQNezd2D9ICSylfkKgYQE34@z> Ian, OK so now I got the crashing problem. Running under GDB shows the following at the point it crashes if this helps: $ gdb -nw arm-elf-gdb GNU gdb 5.0 (20010428-1) Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... (gdb) run Starting program: /xgcc-arm/gnu/bin/arm-elf-gdb.exe Program received signal SIGSEGV, Segmentation fault. 0x00b34555 in Tk_GetHWND (window=2426298) at /GNU-Source-Code/src/tk/win/tkWinWindow.c:150 150 return twdPtr->window.handle; (gdb) load You can't do that when your target is `child' (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /xgcc-arm/gnu/bin/arm-elf-gdb.exe Program received signal SIGSEGV, Segmentation fault. 0x00b34555 in Tk_GetHWND (window=2819414) at /GNU-Source-Code/src/tk/win/tkWinWindow.c:150 150 return twdPtr->window.handle; (gdb) p twdPtr No symbol "twdPtr" in current context. (gdb) p twdPtr->window.handle No symbol "twdPtr" in current context. (gdb) p window $1 = 1348694611 (gdb) The actual code at the crash point looks thus : HWND Tk_GetHWND(window) Window window; { TkWinDrawable *twdPtr = (TkWinDrawable *) window; return twdPtr->window.handle; } so window is passed OK but GDB claims that twdPtr does not exist, surely that can't be right can it ??? Hope this helps, if you have got any further than this then I would be pleased to aid in any way possible. Andy Hare www.ahare.btinternet.co.uk ----- Original Message ----- From: "Ian Roxborough" To: "Andy Hare" Cc: Sent: Monday, November 19, 2001 9:21 PM Subject: Re: Insight windows problems. > Hi, > > This will stop the problem you are talking about: > http://sources.redhat.com/ml/insight/2001-q4/msg00160.html > > You will run into a crashing problem after that (I've > posted emails about this as well). If I get a chance I'll > post a really nasty (but short) fix which will stop the > crashing Win32 (then hopefully I'll get time to fix the > real problem (why are the combobox popup windows not being > destroy when used in a modal dialog...). > > Anyway, nice to see you've got it compiled, > > Ian. > > Andy Hare wrote: > > > > Ian, > > > > Have you found the answer to this problem, I think it sounds like the > > problem I am having with the current CVS of Insight. It builds OK now but > > the dialogs do not get displayed. For example I cannot get the target dialog > > to appear, and if I open the source I get the source selection dialog but > > after that no other input is allowed into Insight, I have to kill it via the > > task manager. > > > > Running Windows 2K and latest cygwin. > > > > Andy Hare > > www.ahare.btinternet.co.uk > > > > ----- Original Message ----- > > From: "Ian Roxborough" > > To: > > Sent: Tuesday, October 16, 2001 9:15 PM > > Subject: Insight windows problems. > > > > > Hi, > > > > > > I'm pretty close to fixing the modal dialog problems > > > on Windows. The problem seem to be related to using > > > the "." window as a master for our transient modal windows. > > > I'm not sure if it's a Tk bug or what, but doing: > > > wm transient $top . > > > will cause the $top toplevel to assume some properties > > > of ".", namely the mapping (or lack of it). Actually > > > this may have something to do with the "wm group" a few > > > lines before: > > > wm group $top . > > > > > > Either way, changing it be: > > > wm transient $top $srcwin > > > seems to fix the dialog problem (where $srcwin is the > > > path of the source window). But now I'm seeing > > > (a related?) problem where after using a modal dialog > > > if I remove focus from Insight for two seconds Insight > > > will exit quickly and quietly. > > > > > > If I find that the exiting problem isn't related to the > > > dialog problem I'll post a patch. > > > > > > Ian.