From patchwork Tue Jan 17 01:39:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 18922 Received: (qmail 100487 invoked by alias); 17 Jan 2017 01:39:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 100323 invoked by uid 89); 17 Jan 2017 01:39:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.0 required=5.0 tests=BAYES_00, KAM_STOCKGEN, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=*frame, frame_info, sk:symbol_, sk:SYMBOL_ X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Jan 2017 01:39:12 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 25CD94F639 for ; Tue, 17 Jan 2017 01:39:12 +0000 (UTC) Received: from cascais.lan (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v0H1d8jm024262 for ; Mon, 16 Jan 2017 20:39:11 -0500 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 3/5] gdb/stack.c: Remove unused mem_fileopen Date: Tue, 17 Jan 2017 01:39:05 +0000 Message-Id: <1484617147-2506-4-git-send-email-palves@redhat.com> In-Reply-To: <1484617147-2506-1-git-send-email-palves@redhat.com> References: <1484617147-2506-1-git-send-email-palves@redhat.com> gdb/ChangeLog: 2017-01-17 Pedro Alves * stack.c (print_frame_args): Remove local mem_fileopen stream, not used. --- gdb/stack.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gdb/stack.c b/gdb/stack.c index e00e297..4c9e14e 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -553,14 +553,9 @@ print_frame_args (struct symbol *func, struct frame_info *frame, long highest_offset = -1; /* Number of ints of arguments that we have printed so far. */ int args_printed = 0; - struct cleanup *old_chain; - struct ui_file *stb; /* True if we should print arguments, false otherwise. */ int print_args = strcmp (print_frame_arguments, "none"); - stb = mem_fileopen (); - old_chain = make_cleanup_ui_file_delete (stb); - if (func) { const struct block *b = SYMBOL_BLOCK_VALUE (func); @@ -730,8 +725,6 @@ print_frame_args (struct symbol *func, struct frame_info *frame, print_frame_nameless_args (frame, start, num - args_printed, first, stream); } - - do_cleanups (old_chain); } /* Set the current source and line to the location given by frame