From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17861 invoked by alias); 17 Nov 2005 01:38:55 -0000 Received: (qmail 17852 invoked by uid 22791); 17 Nov 2005 01:38:53 -0000 Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 01:38:53 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.54) id 1EcYje-0002qU-P7 for gdb@sources.redhat.com; Thu, 17 Nov 2005 01:38:47 +0000 Message-ID: <437BDF25.87B13E4A@dessent.net> Date: Thu, 17 Nov 2005 01:38:00 -0000 From: Brian Dessent MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Re: Dumping core on windows? 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00331.txt.bz2 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.) Brian