This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Forbid run with a core file loaded
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: jan dot kratochvil at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 21 May 2010 16:47:07 +0200 (CEST)
- Subject: Re: [patch] Forbid run with a core file loaded
- References: <20100521134718.GA17157@host0.dyn.jankratochvil.net>
> Date: Fri, 21 May 2010 15:47:19 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
>
> 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.