From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30336 invoked by alias); 22 Mar 2004 17:52:11 -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 30328 invoked from network); 22 Mar 2004 17:52:10 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 22 Mar 2004 17:52:10 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1B5Tar-0002AP-HJ; Mon, 22 Mar 2004 12:52:09 -0500 Date: Mon, 22 Mar 2004 20:59:00 -0000 From: Daniel Jacobowitz To: David Carlton Cc: gdb Subject: Re: generating a core file Message-ID: <20040322175209.GA8274@nevyn.them.org> Mail-Followup-To: David Carlton , gdb References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2004-03/txt/msg00203.txt.bz2 On Mon, Mar 22, 2004 at 09:48:11AM -0800, David Carlton wrote: > On Mon, 22 Mar 2004 09:24:11 -0800, David Carlton said: > > > This is quite off-topic, but are there any programs out there that can > > generate a core file from a stopped process, and write that core file > > to a pipe or send it over the network somehow? > > I guess it's not completely off-topic, actually; it might be nice if > there were a mention of generate-core-file in the GDB info pages. I Indeed. See also gdb/gcore.sh. > just tried using that command together with a named pipe, but it > complained a lot about illegal seeks; is it inherently difficult to > generate a core file without random-access files? Yes; it's certainly not insoluble but it would be very hard to make BFD do it. You'd have to build the ELF file in memory and then write it out. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer