From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10248 invoked by alias); 19 Jul 2010 14:37:31 -0000 Received: (qmail 10240 invoked by uid 22791); 19 Jul 2010 14:37:30 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Jul 2010 14:37:24 +0000 Received: (qmail 2462 invoked from network); 19 Jul 2010 14:37:22 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 19 Jul 2010 14:37:22 -0000 From: Pedro Alves To: Jan Kratochvil Subject: Re: [patch] Forbid run with a core file loaded Date: Mon, 19 Jul 2010 14:37:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.31-11-rt; KDE/4.4.2; x86_64; ; ) Cc: Eli Zaretskii , mark.kettenis@xs4all.nl, brobecker@adacore.com, gdb-patches@sourceware.org, Edjunior Barbosa Machado References: <20100606195033.GA9710@host0.dyn.jankratochvil.net> <201006071220.58289.pedro@codesourcery.com> <20100708171648.GA29048@host0.dyn.jankratochvil.net> In-Reply-To: <20100708171648.GA29048@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007191537.20178.pedro@codesourcery.com> X-IsSubscribed: yes 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-07/txt/msg00280.txt.bz2 On Thursday 08 July 2010 18:16:48, Jan Kratochvil wrote: > gdb/ > 2010-07-08 Jan Kratochvil > > 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) : Remove. > (target_is_pushed): New declaration. > (find_core_target): Remove declaration. > * tracepoint.c (init_tfile_ops) : Remove comment. > * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions. This is okay, thanks. > gdb/doc/ > 2010-07-08 Jan Kratochvil > > Make core files the process_stratum. > * gdb.texinfo (Active Targets): Remove core_stratum. Include > record_stratum example. -- Pedro Alves