How can one access the values like these using the Python from gdb?:
some_array_smartptr->operator[](0)->item // no errors are checked for sake of clarity
In gdb this line works fine, but I cannot figure out how to use it in Python as I am implementing the automated testing.
Please note, that both vector and smartptr are not standard, but are manually written. Semantics is the same though.
"variable_x == value"which elements execute one by one addingif gdb.parse_and_eval(item)andthenclauses. I basically don't need any python code, it is kind of a wrapper for gdb lines and I'd like to simplify it. In fact, I use gdb lines just because the Python syntax to access the values is not clear and I'd like to clarify it (as I stated in the first sentence of the question).