Update: Why not just use the gdb printf command?
(gdb) printf "%s", x asd qwe ... (gdb)
Old answer: Inside the debugger, you can execute commands. Just call printf
(gdb) call printf("%s", x) asd qwe ... (gdb)
ezpz 07 Oct '09 at 10:30 2009-10-07 10:30
source share