From: G DOT DegliEsposti AT ads DOT it To: djgpp AT delorie DOT com Message-ID: Date: Tue, 4 Nov 1997 12:11:00 +0100 Subject: Re: Tracking down where GPFs occur . How? (DJGPP+Allegro) Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Precedence: bulk >Hi, >Is there any way to determine where a program is causing a GPF? >I get all the code like General Protection Fault at eip=(whatever). >and some other (unknown to me) stuff. > >Could this be used to pinpoint where in a program's source (hopefully a .CPP/.C >or .HPP/.H) it's happening? You can use the -g switch for gcc to add debugging informations to your program and then use "symify .exe" to have the information as symbolic names of functions of your programs, filenames and line numbers. ciao Giacomo