mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-06 13:49:38 +01:00
* when retrieving stackdump check if bp is smaller than the previous
bp
This commit is contained in:
parent
8f66389b46
commit
9704595c94
@ -344,6 +344,7 @@ end;
|
|||||||
Function TraceGetMem(size:longint):pointer;
|
Function TraceGetMem(size:longint):pointer;
|
||||||
var
|
var
|
||||||
allocsize,i : longint;
|
allocsize,i : longint;
|
||||||
|
oldbp,
|
||||||
bp : pointer;
|
bp : pointer;
|
||||||
pl : pdword;
|
pl : pdword;
|
||||||
p : pointer;
|
p : pointer;
|
||||||
@ -396,7 +397,10 @@ begin
|
|||||||
for i:=1 to tracesize do
|
for i:=1 to tracesize do
|
||||||
begin
|
begin
|
||||||
pp^.calls[i]:=get_caller_addr(bp);
|
pp^.calls[i]:=get_caller_addr(bp);
|
||||||
|
oldbp:=bp;
|
||||||
bp:=get_caller_frame(bp);
|
bp:=get_caller_frame(bp);
|
||||||
|
if bp<oldbp then
|
||||||
|
bp:=nil;
|
||||||
end;
|
end;
|
||||||
{ insert in the linked list }
|
{ insert in the linked list }
|
||||||
if heap_mem_root<>nil then
|
if heap_mem_root<>nil then
|
||||||
@ -1152,7 +1156,11 @@ finalization
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.23 2003-03-17 14:30:11 peter
|
Revision 1.24 2003-09-11 15:54:27 peter
|
||||||
|
* when retrieving stackdump check if bp is smaller than the previous
|
||||||
|
bp
|
||||||
|
|
||||||
|
Revision 1.23 2003/03/17 14:30:11 peter
|
||||||
* changed address parameter/return values to pointer instead
|
* changed address parameter/return values to pointer instead
|
||||||
of longint
|
of longint
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user