Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Can't print in gdb
@ 2020-12-08  1:52 Olivia Nelson via Gdb
  2020-12-08  8:58 ` Andreas Schwab
  2020-12-08 11:25 ` Shahab Vahedi via Gdb
  0 siblings, 2 replies; 3+ messages in thread
From: Olivia Nelson via Gdb @ 2020-12-08  1:52 UTC (permalink / raw)
  To: gdb

I'm trying to print with a prefix, how can I do that? I've tried to
use + or printf, none of them works:

(gdb) ptype substr
type = struct string {
    uint8 *str;
    int len;
}
(gdb) p substr
$1 = 0x111111 "xxx=0"
(gdb) printf "%s\n", substr
Value can't be converted to integer.
(gdb) p "a" + substr
A syntax error in expression, near `'.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-08 11:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08  1:52 Can't print in gdb Olivia Nelson via Gdb
2020-12-08  8:58 ` Andreas Schwab
2020-12-08 11:25 ` Shahab Vahedi via Gdb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox