From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1106 invoked by alias); 14 Apr 2012 20:59:22 -0000 Received: (qmail 1092 invoked by uid 22791); 14 Apr 2012 20:59:21 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=BAYES_00,KHOP_DYNAMIC,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from v220110690675601.yourvserver.net (HELO v220110690675601.yourvserver.net) (78.47.199.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Apr 2012 20:59:07 +0000 Received: from localhost (v220110690675601.yourvserver.net.local [127.0.0.1]) by v220110690675601.yourvserver.net (Postfix) with ESMTP id 11DF972800B5; Sat, 14 Apr 2012 22:59:06 +0200 (CEST) Received: from v220110690675601.yourvserver.net ([127.0.0.1]) by localhost (v220110690675601.yourvserver.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E5EjHd7T4A7W; Sat, 14 Apr 2012 22:59:05 +0200 (CEST) Received: from [192.168.178.20] (p54ADB350.dip.t-dialin.net [84.173.179.80]) by v220110690675601.yourvserver.net (Postfix) with ESMTPSA id B6E2F72800B4; Sat, 14 Apr 2012 22:59:04 +0200 (CEST) Message-ID: <4F89E518.10801@weilnetz.de> Date: Sat, 14 Apr 2012 20:59:00 -0000 From: Stefan Weil User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20 MIME-Version: 1.0 To: Richard Henderson CC: qemu-devel@nongnu.org, Blue Swirl , gdb@sourceware.org Subject: Re: [PATCH v2] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF References: <1333813984-1516-1-git-send-email-sw@weilnetz.de> <4F89A8F7.9090701@twiddle.net> In-Reply-To: <4F89A8F7.9090701@twiddle.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00102.txt.bz2 Am 14.04.2012 18:42, schrieb Richard Henderson: > On 04/07/2012 11:53 AM, Stefan Weil wrote: >> Not all i386 / x86_64 hosts use ELF. >> Ask the compiler whether ELF is used. >> >> On w64, gdb crashes when ELF_HOST_MACHINE is defined. > > Hmm. Because the other way this could be addressed is > to fix gdb. (1) it shouldn't crash and (2) it could > support elf alongside pe-coff fairly easily i'd imagine; > just a matter of enabling that bfd backend. > > Shall we ask gdb maintainers? > > > r~ Fixing problems at their source - in this case fixing gdb - is of course the best solution. For the w64 port of gdb, I needed a quick solution. Usually it will take some time to ask the gdb maintainers, find a solution, get distributions which include the solution and use such distributions everywhere. I don't think that the setup with pe-coff (when it is supported) will be 100 % identical to the elf setup, so most probably we'll need a test for ELF / not ELF anyway. Therefore I suggest to apply my patch, even it is only an intermediate solution for the next year. Regards, Stefan W. different