From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24700 invoked by alias); 17 Nov 2005 03:29:53 -0000 Received: (qmail 24693 invoked by uid 22791); 17 Nov 2005 03:29:53 -0000 X-Spam-Check-By: sourceware.org Received: from c-24-61-23-223.hsd1.ma.comcast.net (HELO cgf.cx) (24.61.23.223) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 Nov 2005 03:29:51 +0000 Received: by cgf.cx (Postfix, from userid 201) id 24F7213C6C1; Wed, 16 Nov 2005 22:29:50 -0500 (EST) Date: Thu, 17 Nov 2005 03:29:00 -0000 From: Christopher Faylor To: gdb@sourceware.org Subject: Re: Dumping core on windows? Message-ID: <20051117032949.GA9646@trixie.casa.cgf.cx> Mail-Followup-To: gdb@sourceware.org References: <437B87D4.4060304@candelatech.com> <437B8D6B.65249253@dessent.net> <437B8F4C.8060708@candelatech.com> <437BB169.D9EFCF92@dessent.net> <20051117000946.GA28025@trixie.casa.cgf.cx> <437BD9F9.C2632918@dessent.net> <437BDCFF.3010408@candelatech.com> <437BDF25.87B13E4A@dessent.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <437BDF25.87B13E4A@dessent.net> User-Agent: Mutt/1.5.8i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00332.txt.bz2 On Wed, Nov 16, 2005 at 05:38:45PM -0800, Brian Dessent wrote: >Ben Greear wrote: >>Is there a way to get the program name programatically so that this >>works with any application? For instance, I'm using this value for >>Debugger: > >Not that I know of. Of course, you could easily write a wrapper for >dumper that uses the PID to get the image name of the faulting process, >and calls dumper with that filename. Or just patch dumper to do this. > >>Also, is there a way to cause a fault in a program for testing, similar >>to 'kill -11 pid' ? > >You can just run dumper directly with the pid of the running process to >generate a core file without causing a fault. However this will cause >the process to terminate (something about a win32 limitation of not >being able to detach from a process without killing it.) This limitation does not exist on XP or greater. Corinna Vinschen modified gdb to take advantage of that fact. See DebugSetProcessKillOnExit. cgf