Can't print in gdb

Shahab Vahedi shahab.vahedi@gmail.com
Tue Dec 8 11:25:32 GMT 2020


You will need either to typecast:
(gdb) printf "prefix:%s\n", (char *) substr

Or use the member variable:
(gdb) printf "prefix:%s\n", substr.str


Cheers,
Shahab


More information about the Gdb mailing list