Date: 04 Dec 1997 07:45:00 +0100 From: mjs AT prg DOT hannover DOT sgh-net DOT de (Mark Junker) Newsgroups: comp.os.msdos.djgpp Message-ID: <6jDg1cf88gB@prg.hannover.sgh-net.de> References: <34863E35 DOT B72B65DD AT hotmail DOT com> Subject: Re: Getting a call frame trace back Lines: 27 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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_