From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86469 invoked by alias); 31 Mar 2016 13:45:00 -0000 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 Received: (qmail 85423 invoked by uid 89); 31 Mar 2016 13:44:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:635, H*MI:sk:2016033 X-HELO: xyzzy.0x04.net Received: from xyzzy.0x04.net (HELO xyzzy.0x04.net) (159.100.250.38) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 31 Mar 2016 13:44:51 +0000 Received: from hogfather.0x04.net (89-65-66-135.dynamic.chello.pl [89.65.66.135]) by xyzzy.0x04.net (Postfix) with ESMTPS id 100181AA47; Thu, 31 Mar 2016 13:44:49 +0000 (UTC) Received: from [10.102.239.226] (unknown [213.58.148.146]) by hogfather.0x04.net (Postfix) with ESMTPSA id C202D580114; Thu, 31 Mar 2016 15:44:48 +0200 (CEST) Subject: Re: [PATCH v2 3/4] gdbserver: Add powerpc fast tracepoint support. To: Ulrich Weigand References: <20160331113922.61538CA06@oc7340732750.ibm.com> Cc: Simon Marchi , gdb-patches@sourceware.org From: =?UTF-8?Q?Marcin_Ko=c5=9bcielnicki?= Message-ID: <56FD29D0.2050608@0x04.net> Date: Thu, 31 Mar 2016 13:45:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <20160331113922.61538CA06@oc7340732750.ibm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00598.txt.bz2 On 31/03/16 13:39, Ulrich Weigand wrote: >> There's no equivalent to ELFMAG in the BFD headers, and getting to >> e_flags requires more work too (you need elf/external.h and manually >> assemble the word from bytes). > > Huh, that's indeed annoying. > >> Perhaps it'd be simpler to just define >> EF_PPC64_ABI manually if it's not defined? > > This is fine with me too. > > Bye, > Ulrich > Thanks, I pushed the patch with this fragment added before is_elfv2_inferior: +/* Older glibc doesn't provide this. */ + +#ifndef EF_PPC64_ABI +#define EF_PPC64_ABI 3 +#endif