http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55608
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Should be fixed on the trunk. There are still a few cases we don't handle on the GCC side, but for most we emit it right, and it would be nice if GDB emitted for something like (gdb) p a $1 = <synthetic pointer> (gdb) p a[0] $2 = 111 'o' (gdb) p a[1] $3 = 112 'p' (gdb) p a[2] $4 = 113 'q' (gdb) p a[3] $5 = 0 '\000' for the first case when the synthetic pointer is pointer to chars and all the chars till terminating '\0' are defined something like: (gdb) p a $1 = <synthetic pointer> "opq" but I'd say we can close this now.