From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3394 invoked by alias); 21 May 2010 14:47:35 -0000 Received: (qmail 3385 invoked by uid 22791); 21 May 2010 14:47:34 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 May 2010 14:47:30 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id o4LEl9qM009712; Fri, 21 May 2010 16:47:09 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id o4LEl7tQ019880; Fri, 21 May 2010 16:47:07 +0200 (CEST) Date: Fri, 21 May 2010 15:02:00 -0000 Message-Id: <201005211447.o4LEl7tQ019880@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: jan.kratochvil@redhat.com CC: gdb-patches@sourceware.org In-reply-to: <20100521134718.GA17157@host0.dyn.jankratochvil.net> (message from Jan Kratochvil on Fri, 21 May 2010 15:47:19 +0200) Subject: Re: [patch] Forbid run with a core file loaded References: <20100521134718.GA17157@host0.dyn.jankratochvil.net> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-05/txt/msg00481.txt.bz2 > Date: Fri, 21 May 2010 15:47:19 +0200 > From: Jan Kratochvil > > Hi, > > there is already a protection against loading a core file when a program is > running. That makes sense. But what you are suggesting doesn't. I often start gdb and load a core file to investigate a problem. Then I set a breakpoint at some point before the crash and run the program again. This used to work just fine.