Mail Archives: djgpp/1997/12/04/15:17:04
Prev. Author: Pog AT hotmail DOT com
Date: 04.12.97
Subject:"Getting a call frame trace back"
> How do I go about getting a call frame trace back?
> All help GREATLY appreciated.
mov ebx,ebp
.repeat
mov eax,[ebx+4]
mov ebx,[ebx]
push ebx
push ebx
push eax
call _prt_info ;extern "C" void prt_info(void* pCaller, void* pBaseStack)
add esp,8
pop ebx
.until [ptr_of_ebp_before_we_called_main] != ebx
You only have to do conversion to AT&T syntax and find out what value
should be stored at "ptr_of_ebp_before_we_called_main".
Regards, MJS
Use it: _PB3.2 & PREP_ / _ASM & PREASM_ / _NASM & FLINK_
- Raw text -