How to print a null-terminated string with newlines without showing backslash escapes in gdb?

Viewed 98222

I have a variable

char* x = "asd\nqwe\n ... "

and I want to print it with newlines printed as newlines not backslash n. Is it possible?

2 Answers
Related