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: Pedro Alves <pedro at codesourcery dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, mark dot kettenis at xs4all dot nl, brobecker at adacore dot com, gdb-patches at sourceware dot org, Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>
- Date: Mon, 19 Jul 2010 15:37:19 +0100
- Subject: Re: [patch] Forbid run with a core file loaded
- References: <20100606195033.GA9710@host0.dyn.jankratochvil.net> <201006071220.58289.pedro@codesourcery.com> <20100708171648.GA29048@host0.dyn.jankratochvil.net>
On Thursday 08 July 2010 18:16:48, Jan Kratochvil wrote:
> gdb/
> 2010-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> Make core files the process_stratum.
> * corefile.c (core_target): New variable.
> (core_file_command): Remove variable t, use core_target.
> * corelow.c (core_ops): Make it static.
> (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
> * defs.h (make_cleanup_unpush_target): New prototype.
> * gdbarch.h: Regenerate.
> * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
> * gdbcore.h (core_target): New declaration.
> * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
> variables ops_already_pushed and back_to. Use push_target,
> make_cleanup_unpush_target and discard_cleanups calls.
> * record.c (record_open): Replace core_stratum by a core_bfd check.
> * target.c (target_is_pushed): New function.
> (find_core_target): Remove.
> * target.h (enum strata) <core_stratum>: Remove.
> (target_is_pushed): New declaration.
> (find_core_target): Remove declaration.
> * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
> * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
This is okay, thanks.
> gdb/doc/
> 2010-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> Make core files the process_stratum.
> * gdb.texinfo (Active Targets): Remove core_stratum. Include
> record_stratum example.
--
Pedro Alves