From: "Mario Deilmann" Newsgroups: comp.os.msdos.djgpp Subject: Re: unwind programs stack ! Date: Wed, 15 Aug 2001 10:13:32 +0200 Lines: 24 Message-ID: <9ldd3n$8n97c$1@ID-75293.news.dfncis.de> References: <9lb3p7$8h7vn$1 AT ID-75293 DOT news DOT dfncis DOT de> <7263-Tue14Aug2001152627+0300-eliz AT is DOT elta DOT co DOT il> <9lb68u$8j710$1 AT ID-75293 DOT news DOT dfncis DOT de> <2561-Tue14Aug2001182212+0300-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: pcmd.pallas.de (194.45.33.52) X-Trace: fu-berlin.de 997865399 9151724 194.45.33.52 (16 [75293]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Dear Eli, thanks for your help ! | Is FP the so-called ``frame pointer''? If so, this is the EBP | register, and in DJGPP you need to say simply this: | | fp = (void *)env->__ebp; | Great and in which register is the PC (program counter) stored ? pc = (void *)env->__ ? | That's it! | | (A program which uses such intimate details of data structures | internal to the library is highly non-portable, so you shouldn't be | surprised it doesn't work on anything but GNU/Linux. In fact, I won't | be surprised if it will break on some future Linux system as well.) I see ;).