* limit backtraces to values inside the stack, patch by Vincent Snijders

git-svn-id: trunk@162 -
This commit is contained in:
peter 2005-06-01 06:50:52 +00:00
parent d6fcfb0a1e
commit 87fe5d9b98

View File

@ -152,7 +152,8 @@ begin
frames:=nil;
framebufsize:=0;
framecount:=0;
while (framecount<RaiseMaxFrameCount) and (curr_frame > prev_frame) Do
while (framecount<RaiseMaxFrameCount) and (curr_frame > prev_frame) and
(curr_frame<(StackBottom + StackLength)) do
Begin
caller_addr := get_caller_addr(curr_frame);
caller_frame := get_caller_frame(curr_frame);