From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26340 invoked by alias); 16 Nov 2005 22:29:33 -0000 Received: (qmail 26327 invoked by uid 22791); 16 Nov 2005 22:29:29 -0000 Received: from ns2.lanforge.com (HELO ns2.lanforge.com) (66.165.47.211) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 16 Nov 2005 22:29:29 +0000 Received: from [71.112.206.236] (pool-71-112-206-236.sttlwa.dsl-w.verizon.net [71.112.206.236]) (authenticated bits=0) by ns2.lanforge.com (8.13.4/8.13.4) with ESMTP id jAGMTOpV017636; Wed, 16 Nov 2005 14:29:24 -0800 Message-ID: <437BB2C3.7080009@candelatech.com> Date: Wed, 16 Nov 2005 22:29:00 -0000 From: Ben Greear User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1 MIME-Version: 1.0 To: Brian Dessent CC: 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> In-Reply-To: <437BB169.D9EFCF92@dessent.net> Content-Type: text/plain; charset=us-ascii; format=flowed 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/msg00327.txt.bz2 Brian Dessent wrote: > Ben Greear wrote: > > >>After hours or days, my application crashes. It's not overly convenient for me >>to attach gdb to the process(es), but it can be done if that is the only way. > > > Since your app is not a Cygwin program you can't just set 'error_start' > in $CYGWIN. But you can do the equivalent to set dumper as the windows > JIT debugger. Set "HKLM\SOFTWARE\Microsoft\Windows > NT\CurrentVersion\AeDebug\Debugger" to a REG_SZ of the filename and args > of dumper. Use "%ld" to represent the PID. e.g. > "c:\cygwin\bin\dumper.exe myapp %ld" will create myapp.core when the > program faults. Set "HKLM\SOFTWARE\Microsoft\Windows > NT\CurrentVersion\AeDebug\Auto" to a REG_SZ of "1" to have this happen > without the popup "This application has performed an illegal operation, > ... [Debug] [Close]". However, if you do this then there will be no > indication of the fault -- other than the existance of the core file and > your app no longer running (and possibly an entry in the event log) -- > so you might want to leave auto at 0 if you want to see when the fault > occurs. That sounds like exactly what I want! I'll let you know how it goes. Thanks, Ben > > Brian > -- Ben Greear Candela Technologies Inc http://www.candelatech.com