delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/05/07:00:38

From: Pog <Pog AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Getting a call frame trace back
Date: Fri, 05 Dec 1997 13:42:39 +1100
Organization: NetEffect Internet
Lines: 35
Message-ID: <34876A1E.5A46D88E@hotmail.com>
References: <34863E35 DOT B72B65DD AT hotmail DOT com> <6jDg1cf88gB AT prg DOT hannover DOT sgh-net DOT de>
NNTP-Posting-Host: 203.30.98.6
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019