From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: GDB gives segfaults when stopping at breakpoints Date: Wed, 19 Mar 1997 10:06:43 +0100 Organization: TU Chemnitz-Zwickau Lines: 25 Message-ID: <332FACA2.1E1E@Mathematik.tu-chemnitz.de> References: NNTP-Posting-Host: daemon.hrz.tu-chemnitz.de 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 Robrecht Jacques wrote: > > will stop at line 3 but gives an SEGMENTATION FAULT > (that is: gdb does not crash but says the program will > cause a segfault at that position). If I don't put any > breakpoints it will run without problems. This is a known limitation of Win31, which cannot handle correct the breakpoints (software breakpointts). You should use either hardware breakpoints (hbreak in gdb), use RHGDB (which recognises that you are running under Win31 and uses automaticaly hardware breakpoints) or run under plain DOS. And make sure you have read the FAQ, where this is described in section 12.9 the last paragraph. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************