From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: emacs - three questions Date: Sun, 05 Apr 1998 21:56:09 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 29 Message-ID: <35283639.261A@cs.com> References: <3524bc6e DOT 0 AT news1 DOT cityweb DOT de> NNTP-Posting-Host: ppp225.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Davin Max Pearson wrote: > > > 4. If the programm crashes, how can I ran symify over the > > programm output? I can ran it as a shell command, but > > don't know if this is the right way, but it works. > > One problem that bugs me is how do you find the line number of the > crash when your code core dumps. There must be a way that you can > write down the number eip=XXXXXXXX, and later type in that number to > find out the line of the crash. > > The DJGPP FAQ is confusing at this point. I am presently using printf > statements to locate crashes, but this method is cumbersome. It's very simple. When the dump is on the screen, type "symify myprog.exe". The resulting display will show the location of each stack frame at the time the crash occurred. The topmost frame is where it happened. Symify has various options to dump its report to a file or read it from a file, or both. Chapter 9.2 of the FAQ gives _precise_ information on this subject. -- --------------------------------------------------------------------- | John M. Aldrich | "Animals can be driven crazy by pla- | | aka Fighteer I | cing too many in too small a pen. | | mailto:fighteer AT cs DOT com | Homo sapiens is the only animal that | | http://www.cs.com/fighteer | voluntarily does this to himself." | ---------------------------------------------------------------------