Xref: news2.mv.net comp.os.msdos.djgpp:784 From: fenric AT clark DOT net (Andrew McCaffrey) Newsgroups: comp.os.msdos.djgpp Subject: Re: Issues with nearptr's. Date: 30 Jan 1996 21:45:25 GMT Organization: the beginning of all beginnings Lines: 23 Message-ID: <4em3hl$mv7@clarknet.clark.net> References: <822855248snz AT trenham DOT demon DOT co DOT uk> <310c0125 DOT sandmann AT clio DOT rice DOT edu> <4eccdl$90b AT clarknet DOT clark DOT net> <310d8c19 DOT sandmann AT clio DOT rice DOT edu> NNTP-Posting-Host: explorer.clark.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Charles Sandmann (sandmann AT clio DOT rice DOT edu) wrote: > > I've written a couple of graphic routines with nearptrs and they run fine > > under dos and cwsdpmi, but when I try to run them under gdb, I get a > > segmentation violation signal. > > I believe you, I've never tried it. Does it work under EDEBUG32 or FSDB? > If so, it may be some bug in GDB's memory management or something. Are > you sure you are using the non-move sbrk()? This is exactly the problem > I would expect using a debugger and the unix-sbrk with nearptrs (unless > you reload the pointer). A simple example is most useful debugging these > problems. Those are a couple of good questions. I have not tried the program under EDEBUG or FSDB. I don't know which version of sbrk I'm using, how do I find out? - Guess it's time to go back and read the info files again :) -- +------------------------Andrew McCaffrey+[fenric AT clark DOT net]------------+ |Doctor: But I don't exist in your world!|"Anybody remotely interesting | |Brigade-Leader: Then you won't feel the |is mad in one way or another."| |bullets when we shoot you. | - The Seventh Doctor | | Doctor Who - Inferno (1970) | | +----------------------------------------+------------------------------+