public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
	mark.kettenis@xs4all.nl, brobecker@adacore.com,
	gdb-patches@sourceware.org,
	Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Subject: Re: [patch] Forbid run with a core file loaded
Date: Mon, 19 Jul 2010 14:37:00 -0000	[thread overview]
Message-ID: <201007191537.20178.pedro@codesourcery.com> (raw)
In-Reply-To: <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

  parent reply	other threads:[~2010-07-19 14:37 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-21 14:47 Jan Kratochvil
2010-05-21 15:02 ` Mark Kettenis
2010-05-21 15:05   ` Joel Brobecker
2010-05-21 15:40     ` Mark Kettenis
2010-05-23 19:38       ` Jan Kratochvil
2010-05-23 21:08         ` Eli Zaretskii
2010-06-06 19:51           ` Jan Kratochvil
2010-06-06 23:08             ` Eli Zaretskii
2010-06-07 11:21             ` Pedro Alves
2010-06-08  2:33               ` Tom Tromey
2010-06-08 11:03                 ` Pedro Alves
2010-07-08 17:17               ` Jan Kratochvil
2010-07-08 18:28                 ` Eli Zaretskii
2010-07-19 18:02                   ` Jan Kratochvil
2010-07-19 18:05                     ` Eli Zaretskii
2010-07-19 18:16                       ` Jan Kratochvil
2010-07-27 16:00                     ` Joel Brobecker
2010-07-19 14:37                 ` Pedro Alves [this message]
2010-05-23 21:16         ` Pedro Alves
2010-05-21 15:05   ` Pedro Alves
2010-05-21 15:54     ` Mark Kettenis
2010-05-21 16:08       ` Pedro Alves
2010-05-21 15:07   ` Jan Kratochvil
2010-05-21 15:04 ` Joel Brobecker
2010-05-21 15:06 ` Pedro Alves
2010-05-21 15:15   ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201007191537.20178.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --cc=emachado@linux.vnet.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=mark.kettenis@xs4all.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).