This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch 11/12] entryval#2: @entry values even for references


Just a quick reply, can't reply in full now:

On Thursday 22 September 2011 22:47:53, Jan Kratochvil wrote:
> (b) Even if I create such DWARF attribute by hand the expression `s@entry.b'
>     for parameter `S &s' of type `class S { char a, b; };' never reaches this
>     point of code because:

That's not the case that descends into subfields of an object with
embedded_offset != 0.  It's when printing the _whole struct_, and
gdb goes and prints a at embedded_offset 0 of s, and then b at
embedded_offset==offsetof(typeof(s), b) of s.

Try "p s@entry" ?

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]