From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: zet <feqin1023@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: get the location of the definition of expression's type?
Date: Wed, 15 Jun 2016 14:39:00 -0000 [thread overview]
Message-ID: <20160615143928.GA13909@host1.jankratochvil.net> (raw)
In-Reply-To: <CAOfAq_q18S6VxzR=j-zKaVQ4EXeJW9=RDQfbRt0xSX=va_wT2g@mail.gmail.com>
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 <global_options>
(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
prev parent reply other threads:[~2016-06-15 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-15 13:48 zet
2016-06-15 14:39 ` Jan Kratochvil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160615143928.GA13909@host1.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=feqin1023@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox