Re: Can't print in gdb

Shahab Vahedi via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.