This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Forbid run with a core file loaded


On Fri, 21 May 2010 16:47:07 +0200, Mark Kettenis wrote:
> > 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.

What do you suggest otherwise?

If core-and-then-run should work then we must make working also
run-and-then-core (fine with that).

With both core file and running process the core file memory gets ignored.
So I find unloading a core file as just making the situation more simple.

(a) Do you find the "Unload it?" question too distrurbing?

(b) Do you find essential to see the core file memory again after the process
    terminates?


Thanks,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]