🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #2691

Re: gdb kills ofstreams

#2691
From: Shane McDaniel
Date: Fri, 08 Feb 2002 16:17
21 lines
1708 bytes

On Fri, 8 Feb 2002, Andrew Cagney wrote:

> > I have a program that uses ofstreams.  My program works fine when ran from
> > the command line, but if I use gdb to run the program my ofstream files
> > aren't created.  This is very frustrating and has cost me a couple hours
> > of work.
> >
> > Is there an explanation for this behavior?
>
>
> The problem could be anywhere.  Can I suggest providing a brief
> descripion of what ofstream is and also mention your host and target.
>
> Andrew

I am on Solaris 2.8.   ofstream is the standard c++ way of writing out to
a file.  I am compiling with g++ 2.95.3 and using gdb 5.1.

-shane
Technical Details
Message-ID: <Pine.WNT.4.33.0202081115520.119-100000@bunnyhop.llan.ll.mit.edu>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed.online.be!zur.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bunnyhop!shanem

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,b74d087bc2b2238d
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-02-08 08:17:47 PST
x-uunet-gateway: mr0.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Fri, 8 Feb 2002 16:17:45 GMT
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed.online.be!zur.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bunnyhop!shanem
From: shanem@ll.mit.edu (Shane McDaniel)
Subject: Re: gdb kills ofstreams
Message-ID: <Pine.WNT.4.33.0202081115520.119-100000@bunnyhop.llan.ll.mit.edu>
X-X-Sender: shanem@llinfo.llan.ll.mit.edu
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Date: Fri, 8 Feb 2002 11:17:44 -0500
X-Complaints-To: news@ll.mit.edu
X-Trace: llslave.llan.ll.mit.edu 1013185044              (Fri, 08 Feb 2002 11:17:24 EST)
NNTP-Posting-Date: Fri, 08 Feb 2002 11:17:24 EST
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Sender: bug-gdb-request@mail.gnu.org
Lines: 21