From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121423 invoked by alias); 15 Jun 2016 14:39:34 -0000 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 Received: (qmail 121411 invoked by uid 89); 15 Jun 2016 14:39:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=expression's, H*MI:sk:CAOfAq_ 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 15 Jun 2016 14:39:32 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 791BE81F07; Wed, 15 Jun 2016 14:39:31 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-44.ams2.redhat.com [10.36.116.44]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5FEdS8T032569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 15 Jun 2016 10:39:30 -0400 Date: Wed, 15 Jun 2016 14:39:00 -0000 From: Jan Kratochvil To: zet Cc: gdb@sourceware.org Subject: Re: get the location of the definition of expression's type? Message-ID: <20160615143928.GA13909@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00025.txt.bz2 On Wed, 15 Jun 2016 15:48:20 +0200, zet wrote: > When (gdb) ptype global_options > I will get definition of the type of global_options whose type is > 'struct gcc_options' > > Is it possible get the definition location(which file it is defined > in) info of 'struct gcc_options'? (gdb) set filename-display absolute (gdb) info line global_options Line number 4677 is out of range for "/quad/home/jkratoch/redhat/gcc5-build/gcc/options.h". No line number information available for address 0x6d6020 (gdb) info line gcc_options Line number 13 is out of range for "/quad/home/jkratoch/redhat/gcc5-build/gcc/options.h". /quad/home/jkratoch/redhat/gcc5-build/gcc/options.h: 13:struct GTY(()) gcc_options 14:#else 15:struct gcc_options 16:#endif 17:{ [...] 4677:extern struct gcc_options global_options; Jan