From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1907 invoked by alias); 14 Jun 2009 08:47:21 -0000 Received: (qmail 1897 invoked by uid 22791); 14 Jun 2009 08:47:20 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_55,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_RHS_DOB X-Spam-Check-By: sourceware.org Received: from eir.is.scarlet.be (HELO eir.is.scarlet.be) (193.74.71.27) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 14 Jun 2009 08:47:15 +0000 Received: from [172.17.1.10] (ip-81-11-255-63.dsl.scarlet.be [81.11.255.63]) by eir.is.scarlet.be (8.14.2/8.14.2) with ESMTP id n5E8kwkS025750; Sun, 14 Jun 2009 10:46:59 +0200 Subject: Re: Patch : gdbserver get_image_name on CE From: Danny Backx Reply-To: danny.backx@scarlet.be To: Pedro Alves Cc: gdb-patches@sourceware.org In-Reply-To: <200906131905.30933.pedro@codesourcery.com> References: <1244903385.20290.9.camel@pavilion> <200906131905.30933.pedro@codesourcery.com> Content-Type: text/plain Date: Sun, 14 Jun 2009 08:47:00 -0000 Message-Id: <1244969225.20290.59.camel@pavilion> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-DCC-scarlet.be-Metrics: eir 20001; Body=3 Fuz1=3 Fuz2=3 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00367.txt.bz2 On Sat, 2009-06-13 at 19:05 +0100, Pedro Alves wrote: > > 2. Handle a case where the inferior refuses to start. See the > > code after WaitForDebugEvent in win32-low.c . > > This is quite mystifying. Do you have more details on this? Not yet, but as I said in the other message, the a simple setjmp demo application is an example. Other cases I've seen were with invalid requirements to a DLL (use of an API that was not in the DLL). On a PocketPC, this causes a dialog to pop up. On Windows Embedded CE the application appears just not to start up. > > 3. Setjmp won't work on this platform, I've "#if 0"-ed it out. > > Clearly not the right solution. Comment please. > > What does "won't work on this platform" mean? If longjmp > doesn't work, then you probably have a bug in your > headers or import libs? I'd suspect _JBLEN in the > mingw headers. I've been thinking about that too, I'll try to debug this but that's hard with no debugger. > IIRC, psapi.dll does exist on WinCE, but it is > not bundled with the OS usually. If I'm not confusing > it with some other dll, I think I have it for ARM, gotten > from some MSFT redistributable, and it does work. It isn't on the Windows Embedded for x86 that I'm using. But the gdbserver code appears to be well written : it silently falls back to something that does work. I've not messed with that code because "if it ain't broke, don't fix it". I could have surrounded it with #ifndef _WIN32_WCE but I didn't see the point. Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info