Q:

gdb, C++, how do I print char** member of a struct

as the title says lets say we have
struct something{
char** a;
}

.
.
something* nick;
.

then on debugging how do I print a[0] ? 
with eg 
(gdb) p nick->a[0] 

i get
$2 = 0x739b40 "\n\a¶\n"

Thanks for the help

A:

char ** in this case may mean array of null terminated character buffers. Check if your strings are null terminated or not. Then only 
(gdb) p nick->a[0] 

will show some valid null terminated string if any
if you would like to see character by character, you may use this:
(gdb) p nick->a[0][0] 
hope that helps
there's no other way

