From: Nikita Popov Date: Tue, 27 May 2014 15:19:12 +0000 (+0200) Subject: Clamb gdb string output at 256 chars X-Git-Tag: POST_PHPNG_MERGE~253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6d33eb654e7b20853c202467f60de124e381245;p=php Clamb gdb string output at 256 chars --- diff --git a/.gdbinit b/.gdbinit index b526c672ed..b9913fbc89 100644 --- a/.gdbinit +++ b/.gdbinit @@ -531,7 +531,7 @@ define ____print_str set $tmp = 0 set $str = $arg0 printf "\"" - while $tmp < $arg1 + while $tmp < $arg1 && $tmp < 256 if $str[$tmp] > 32 && $str[$tmp] < 127 printf "%c", $str[$tmp] else @@ -539,6 +539,9 @@ define ____print_str end set $tmp = $tmp + 1 end + if $tmp != $arg1 + printf "..." + end printf "\"" end