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: [RFC - Python Scripting] New method Value.referenced_value to dereference pointer as well as reference values (with docs)


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


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