Mail Archives: djgpp/1997/12/05/07:00:38
Mark Junker wrote:
> 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_
Thanks for the help!
Unfortunatly though my ASM skills are let ting me down, so I was wondering if
an explanation of exactly how it works could be given?
Thanks...
- Raw text -