This is the mail archive of the gdb@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: gdb can't handle Boost?


>>>>> "Mathew" == Mathew Yeates <mat.yeates@gmail.com> writes:

Mathew> Array<double, 1> ind(100);
Mathew>   for(int i = 0; i < 100; ++i)
Mathew>     ind(i) = i + 1;
Mathew>   cout << ind(0) << "\n";
Mathew>   res = 0;

Mathew> If I set a breakpoint at the end where res is set to 0
Mathew> the value of "1" is printed to stdout. However,

Mathew> (gdb) p ind(0)
Mathew> Invalid data type for function to be called.

I think operator() is not implemented in gdb.

I didn't see a bug report for this, I will file one shortly.

Mathew> Is there a workaround for this?

You can look at 'ind' more directly.

We're working on improving C++ expression parsing in gdb.  Please file
bugs for any problems you find.

Tom


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