This is the mail archive of the gdb-prs@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]

[Bug c++/13427] New: Incorrect address of std::string argument inconstructor when passing by value


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

             Bug #: 13427
           Summary: Incorrect address of std::string argument in
                    constructor when passing by value
           Product: gdb
           Version: 7.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: davewong@syberdave.net
    Classification: Unclassified


Created attachment 6070
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6070
Test case

When setting a breakpoint at a constructor, I cannot "print" an argument
because gdb doesn't get its address correct. See attached.

It may be useful to note that it works properly at a class method (as opposed
to the constructor).

gcc (Debian 4.5.3-1) 4.5.3
GNU gdb (GDB) 7.3-debian

-- 
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.


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