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++/10050] New: Support for 'new' with convenience variables


This is a bug request to add support for using 'new' with convenience variables.

It seems that gdb has support for using 'malloc' with convenience variables
(thanks tromey for pointing that out!), so while debugging a program written in
C I can get the value of out parameters by doing something like this at the gdb
command line:

 > set $mystr = malloc(1000 * sizeof(char))
 > get_some_str($mystr)
 > p $mystr

It seems that gdb does not yet support using 'new' with convenience variables
though, so it's not possible to do the same thing for code written in C++ where
the out parameter is some class type.

The code I have to deal with involves digging down through a horrible mess of an
object graph and into nasty hash table code to get to the data I typically want,
so support for 'new' would certainly be a great help. :-)

-- 
           Summary: Support for 'new' with convenience variables
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: jwatt at jwatt dot org
                CC: gdb-prs at sourceware dot org


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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