From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27541 invoked by alias); 13 Jun 2009 06:28:27 -0000 Received: (qmail 27532 invoked by uid 22791); 13 Jun 2009 06:28:27 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-vbr12.xs4all.nl (HELO smtp-vbr12.xs4all.nl) (194.109.24.32) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 13 Jun 2009 06:28:20 +0000 Received: from newthor.remedy.nl (a82-92-209-232.adsl.xs4all.nl [82.92.209.232]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id n5D6SAcL063888; Sat, 13 Jun 2009 08:28:11 +0200 (CEST) (envelope-from jwillemsen@remedy.nl) Received: from localhost (localhost [127.0.0.1]) by newthor.remedy.nl (Postfix) with ESMTP id 8B4262E45F3; Sat, 13 Jun 2009 08:28:10 +0200 (CEST) X-Spam-Score: -4.363 Received: from newthor.remedy.nl ([127.0.0.1]) by localhost (newthor.remedy.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id atxFh7apooxW; Sat, 13 Jun 2009 08:28:10 +0200 (CEST) Received: from m4400jw (unknown [10.9.0.18]) by newthor.remedy.nl (Postfix) with ESMTP id D00C02E45E6; Sat, 13 Jun 2009 08:28:09 +0200 (CEST) Reply-To: From: "Johnny Willemsen" To: , "'Pedro Alves'" Cc: References: <1244366297.11918.210.camel@pavilion> <200906071804.37208.pedro@codesourcery.com> <1244397699.11918.216.camel@pavilion> <200906071916.03048.pedro@codesourcery.com> <1244845085.11918.283.camel@pavilion> In-Reply-To: <1244845085.11918.283.camel@pavilion> Subject: RE: Patch : gdbserver get_image_name on CE Date: Sat, 13 Jun 2009 06:28:00 -0000 Message-ID: <033201c9ebf0$31674660$9435d320$@nl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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/msg00351.txt.bz2 Hi, > Excellent news : I just figured out why gdbserver was failing on CE/x86 > where the same code worked for ARM. > > The GetThreadContext call looked different between win32-i386-low.c and > its ARM equivalent : > > th->context.ContextFlags = > CONTEXT_FULL | > CONTEXT_FLOATING_POINT | > CONTEXT_EXTENDED_REGISTERS | > CONTEXT_DEBUG_REGISTERS; > GetThreadContext (th->h, &th->context); > > On ARM, only CONTEXT_FULL and CONTEXT_FLOATING_POINT were used. The > call > on x86 returned error 87 (ERROR_INVALID_PARAMETER) but MSDN doesn't > contain clues as to what that means. I have had this a few times also with other calls on CE, it seems you pass an incorrect value that isn't supported. Johnny