5 Aug
2018
5 Aug
'18
7:22 p.m.
Hello, 01.08.2018, 10:26, "Patrick Schulz" <pschulz@posteo.de>:
I'm trying to debug with GiNaC objects. I am aware of the dbgprint() function, however, this function can't be found for a numeric or a symbol.
That's not quite correct. dbgprint is a virtual method, so both numeric and symbol use the implementation from the parent class (i.e. basic).
So the basic question is: How can i print the contents of GiNaC::numeric and GiNaC::symbol while debugging?
Type in call e.dbgprint() in gdb. Alternatively one can use gdb pretty printers (see the attached patch). Best regards, Alexey