On Thu, Mar 29, 2012 at 08:36:14PM +0200, Frank Heckenbach wrote:
> Package: gdb
> Version: 7.0.1-2+b1
> Severity: normal
> 
> *** Please type your report below this line ***
> 
> p omits trailing 0 when printing a range of chars.
> To reproduce:
> 
> # echo 'char foo[5] = { 1, 2, 0, 4, 0 };' > foo.c
> # gcc -c -g foo.c
> # gdb foo.o
> (gdb) p foo[0]@5
> $1 = "\001\002\000\004"

Thanks for the testcase, I am still able to reproduce with 7.7-1, could you 
please send usch information to upstream GDB bugtracker?

Regards,
-- 
  Hector Oron

Attachment: signature.asc
Description: Digital signature

Reply via email to