This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC - Python Scripting] New method Value.referenced_value to dereference pointer as well as reference values (with docs)
- From: Tom Tromey <tromey at redhat dot com>
- To: Siva Chandra <sivachandra at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 14 Mar 2012 09:48:36 -0600
- Subject: Re: [RFC - Python Scripting] New method Value.referenced_value to dereference pointer as well as reference values (with docs)
- References: <CAGyQ6gyJAw37dBWZHidvoVdGDhL83uD3bsNKyH5-jG2o_qEysw@mail.gmail.com>
>>>>> "Siva" == Siva Chandra <sivachandra@google.com> writes:
Siva> I could not think of a better name than 'referenced_value' for this
Siva> method.
Seems reasonable to me.
Siva> About using prepare_for_testing, I notice that compilation fails with
Siva> this as gcc is being used to compile the test case and not g++. So, I
Siva> have not changed the exp file in this patch.
You can do it by passing the "c++" option, e.g. from dispcxx.exp:
if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
The code bits are ok with this fixed.
Tom