com php-src: Clamb gdb string output at 256 chars: .gdbinit

From: Date: Wed, 28 May 2014 16:22:19 +0000
Subject: com php-src: Clamb gdb string output at 256 chars: .gdbinit
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78620@lists.php.net to get a copy of this message
Commit: a6d33eb654e7b20853c202467f60de124e381245 Author: Nikita Popov <nikic@php.net> Tue, 27 May 2014 17:19:12 +0200 Parents: d0d62d3bb0a18dc3d202ba2c70fab09938c9b99f Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a6d33eb654e7b20853c202467f60de124e381245 Log: Clamb gdb string output at 256 chars Changed paths: M .gdbinit Diff: diff --git a/.gdbinit b/.gdbinit index b526c67..b9913fb 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

« previous php.cvs (#78620) next »