Fix get_caller_stackinfo function: Addr parameter must also be by var

git-svn-id: trunk@25537 -
This commit is contained in:
pierre 2013-09-23 09:51:20 +00:00
parent f3963172ba
commit 22e9cb48dd
3 changed files with 3 additions and 3 deletions

View File

@ -697,7 +697,7 @@ end;
of get_caller_stackinfo procedure, of get_caller_stackinfo procedure,
using get_caller_addr and get_caller_frame using get_caller_addr and get_caller_frame
functions. } functions. }
procedure get_caller_stackinfo(var framebp : pointer; addr : codepointer); procedure get_caller_stackinfo(var framebp : pointer; var addr : codepointer);
var var
nextbp : pointer; nextbp : pointer;
nextaddr : codepointer; nextaddr : codepointer;

View File

@ -1262,7 +1262,7 @@ Function Get_pc_addr : CodePointer;
function get_caller_addr(framebp:pointer;addr:codepointer=nil):codepointer; function get_caller_addr(framebp:pointer;addr:codepointer=nil):codepointer;
function get_caller_frame(framebp:pointer;addr:codepointer=nil):pointer; function get_caller_frame(framebp:pointer;addr:codepointer=nil):pointer;
procedure get_caller_stackinfo(var framebp : pointer; addr : codepointer); procedure get_caller_stackinfo(var framebp : pointer; var addr : codepointer);
Function IOResult:Word; Function IOResult:Word;
Function Sptr:Pointer;[internconst:fpc_in_const_ptr]; Function Sptr:Pointer;[internconst:fpc_in_const_ptr];

View File

@ -101,7 +101,7 @@ function get_frame:pointer;assembler;nostackframe;
{ Try to find previous $fp,$ra register pair { Try to find previous $fp,$ra register pair
reset both to nil if failure } reset both to nil if failure }
{$define FPC_SYSTEM_HAS_GET_CALLER_STACKINFO} {$define FPC_SYSTEM_HAS_GET_CALLER_STACKINFO}
procedure get_caller_stackinfo(var framebp,addr : pointer); procedure get_caller_stackinfo(var framebp : pointer; var addr : codepointer);
const const
instr_size = 4; instr_size = 4;
MAX_INSTRUCTIONS = 64000; MAX_INSTRUCTIONS = 64000;