public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15437] New: virtual inheritance: __in_chrg and __vtt_parm
@ 2013-05-07 17:49 jan.kratochvil at redhat dot com
  2013-05-07 19:27 ` [Bug c++/15437] " tromey at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-05-07 17:49 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15437

             Bug #: 15437
           Summary: virtual inheritance: __in_chrg and __vtt_parm
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
    Classification: Unclassified
            Target: x86_64-unknown-linux-gnu


class A {
public:
  A(int arg) {}
};
class B:virtual public A {
public:
  B(int arg):A(arg) {}
};
int main() {
  B b(1);
}

(gdb) start
(gdb) step
B::B (this=0x7fffffffda30, arg=1, __in_chrg=<optimized out>,
__vtt_parm=<optimized out>) at ...C:7
7      B(int arg):A(arg) {}

 <2><166>: Abbrev Number: 19 (DW_TAG_formal_parameter)
    <167>   DW_AT_name        : __in_chrg      
    <16b>   DW_AT_type        : <0x189> 
    <16f>   DW_AT_artificial  : 1       
 <2><16f>: Abbrev Number: 19 (DW_TAG_formal_parameter)
    <170>   DW_AT_name        : __vtt_parm     
    <174>   DW_AT_type        : <0x18e> 
    <178>   DW_AT_artificial  : 1       

Those two parameters could be probably just ignored.

GNU gdb (GDB) 7.6.50.20130507-cvs
gcc (GCC) 4.9.0 20130507 (experimental)
(but it affects any version I tried)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/15437] virtual inheritance: __in_chrg and __vtt_parm
  2013-05-07 17:49 [Bug c++/15437] New: virtual inheritance: __in_chrg and __vtt_parm jan.kratochvil at redhat dot com
@ 2013-05-07 19:27 ` tromey at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at redhat dot com @ 2013-05-07 19:27 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15437

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-05-07 19:27:50 UTC ---
See bug #8218 as well.
At least for "ptype", showing artificial arguments appears
to be intentional.
Arguably that is the case here as well -- I suppose in case
you need to debug at a very low level.
But it wouldn't hurt to provide a setting to control this.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-07 19:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-07 17:49 [Bug c++/15437] New: virtual inheritance: __in_chrg and __vtt_parm jan.kratochvil at redhat dot com
2013-05-07 19:27 ` [Bug c++/15437] " tromey at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).