cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/19/09:34:24

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
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: <wr5wwr55934 DOT fsf AT esat DOT kuleuven DOT ac DOT be>
NNTP-Posting-Host: daemon.hrz.tu-chemnitz.de
Mime-Version: 1.0
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                       *
*****************************************************************

- Raw text -


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