From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29160 invoked by alias); 14 Jul 2004 22:35:04 -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 29153 invoked from network); 14 Jul 2004 22:35:03 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 14 Jul 2004 22:35:03 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6EMZ3e1011323 for ; Wed, 14 Jul 2004 18:35:03 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6EMZ1w19197; Wed, 14 Jul 2004 18:35:01 -0400 Received: from redhat.com (dhcp-172-16-25-160.sfbay.redhat.com [172.16.25.160]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id i6EMZ0P27757; Wed, 14 Jul 2004 15:35:00 -0700 Message-ID: <40F5B514.8070906@redhat.com> Date: Wed, 14 Jul 2004 23:01:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.4.2) Gecko/20040301 MIME-Version: 1.0 To: Andrew Cagney CC: Chris Markle , gdb@sources.redhat.com Subject: Re: gcore or generate-core-file command? References: <00df01c46715$ef7cbc80$0239a8c0@D4PS1621> <40F58CEB.9080308@gnu.org> In-Reply-To: <40F58CEB.9080308@gnu.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00154.txt.bz2 Andrew Cagney wrote: >> Hi - I am currently using some moldy oldy versions of gdb that do not >> appear >> to have a way to generate core files (yes I know I should upgrade). I get >> the impression that newer gdb versions have a gcore (or >> generate-core-file?) >> command. Is this the case or is this somehow limited to Linux or some >> subset >> of platforms (my interest here is generating cores with gdb on Solaris). >> I've looked in the gdb doc and can't find refs to this ability. Is this >> possible? Which version of gdb did this shwo up in? Thx in advance. Chris > > > The command "gcore" was added to GDB 5.2. You're right though, it isn't > doesn't appear to be documented. > > Michael, was there any documentation for this command? ... Drat. We had a conversation on gdb-patches in January 2002, about what section of the manual they could go into. That sort of trailed off without resolution, and I forgot to persue it. There is of course the built-in help. Yes, it does work on Solaris, and Linux, and Unixware. And apparently bsd, and S390 (who knew?) Chris, this is what the built-in help says: (gdb) help gcore Save a core file with the current state of the debugged process. Argument is optional filename. Default filename is 'core.'.