This is the mail archive of the
mailing list for the GDB project.
Re: gdb can't handle Boost?
>>>>> "Mathew" == Mathew Yeates <firstname.lastname@example.org> 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.