From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2222 invoked by alias); 19 May 2014 11:15:33 -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 2198 invoked by uid 89); 19 May 2014 11:15:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 May 2014 11:15:31 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4JBFSrE006903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 May 2014 07:15:28 -0400 Received: from host2.jankratochvil.net (ovpn-116-107.ams2.redhat.com [10.36.116.107]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s4JBFNke023611 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Mon, 19 May 2014 07:15:26 -0400 Date: Mon, 19 May 2014 11:15:00 -0000 From: Jan Kratochvil To: "Agovic, Sanimir" Cc: "'Yao Qi'" , Tom Tromey , "gdb-patches@sourceware.org" Subject: Re: [PATCH 07/14] add infcall_mmap and gcc_target_options gdbarch methods Message-ID: <20140519111523.GA3108@host2.jankratochvil.net> References: <1400253995-12333-1-git-send-email-tromey@redhat.com> <1400253995-12333-8-git-send-email-tromey@redhat.com> <5379A051.9040209@codesourcery.com> <20140519064019.GA19564@host2.jankratochvil.net> <5379B528.5040607@codesourcery.com> <0377C58828D86C4588AEEC42FC3B85A71D86F725@IRSMSX105.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0377C58828D86C4588AEEC42FC3B85A71D86F725@IRSMSX105.ger.corp.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00335.txt.bz2 On Mon, 19 May 2014 10:26:43 +0200, Agovic, Sanimir wrote: > We may consider picking the cu die for the current $pc and extract the compiler > options from DW_AT_producer[1]. But this requires parsing the necessary bits out > of a string. Adding something like DW_AT_producer_options to dwarf would make > things more straight forward. > > [1] DW_AT_producer : [...] -mtune=generic -march=x86-64 -g This is already done in this patchset. I expect if one uses the compiled expressions one is probably using -g non-stripped inferior. This gdbarch gcc_target_options method is there only as some fallback for stripped / non-g / old gcc / -gno-record-gcc-switches inferiors. Jan