Update:
Why not just use the gdb printf command?
(gdb) printf "%s", x
asd
qwe
...
(gdb)
Old answer:
From within the debugger you can execute commands. Just call printf
(gdb) call printf("%s", x)
asd
qwe
...
(gdb)
Update:
Why not just use the gdb printf command?
(gdb) printf "%s", x
asd
qwe
...
(gdb)
Old answer:
From within the debugger you can execute commands. Just call printf
(gdb) call printf("%s", x)
asd
qwe
...
(gdb)