From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18009 invoked by alias); 8 Feb 2002 16:17:41 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17932 invoked from network); 8 Feb 2002 16:17:39 -0000 Received: from unknown (HELO ll.mit.edu) (129.55.12.40) by sources.redhat.com with SMTP; 8 Feb 2002 16:17:39 -0000 Received: (from smtp@localhost) by ll.mit.edu (8.11.3/8.8.8) id g18GHXb13113; Fri, 8 Feb 2002 11:17:33 -0500 (EST) Received: from UNKNOWN( ), claiming to be "bunnyhop" via SMTP by llmail, id smtpdAAAPtaWpx; Fri Feb 8 11:17:25 2002 Newsgroups: gnu.gdb.bug Date: Fri, 08 Feb 2002 08:17:00 -0000 From: Shane McDaniel To: Andrew Cagney cc: Subject: Re: gdb kills ofstreams In-Reply-To: <3C63E8CD.7080504@cygnus.com> Message-ID: X-X-Sender: shanem@llinfo.llan.ll.mit.edu MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-02/txt/msg00137.txt.bz2 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