Browse Source

Clamb gdb string output at 256 chars

pull/686/head
Nikita Popov 12 years ago
parent
commit
a6d33eb654
  1. 5
      .gdbinit

5
.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

Loading…
Cancel
Save