From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96908 invoked by alias); 8 Jul 2015 19:42:20 -0000 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 Received: (qmail 96863 invoked by uid 89); 8 Jul 2015 19:42:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-HELO: mtaout29.012.net.il Received: from mtaout29.012.net.il (HELO mtaout29.012.net.il) (80.179.55.185) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Jul 2015 19:42:17 +0000 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NR600200OUMXM00@mtaout29.012.net.il> for gdb-patches@sourceware.org; Wed, 08 Jul 2015 22:41:47 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NR60028IPDNQF20@mtaout29.012.net.il>; Wed, 08 Jul 2015 22:41:47 +0300 (IDT) Date: Wed, 08 Jul 2015 19:42:00 -0000 From: Eli Zaretskii Subject: Re: [RFC] Use of create_new_frame from 'frame'. In-reply-to: <20150708170944.GA17985@embecosm.com> To: Andrew Burgess Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83io9uv3lb.fsf@gnu.org> References: <20150708170944.GA17985@embecosm.com> X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00248.txt.bz2 > Date: Wed, 8 Jul 2015 18:09:44 +0100 > From: Andrew Burgess > > I wonder then if there's a better way to offer this feature. The two > possible choices (other suggestions welcome) are: > > 1. Create a new command 'create-frame' that takes one or two > arguments, and always creates and selects a new frame new frame. > The frame command no longer creates new frames. > > 2. Make 'frame' take an (optional) flag (like 'x', or > 'disassemble'), so a user can now say: > frame /c STACK-ADDR PC-ADDR > in order to create (and select) a new frame. Without the /c flag > no new frames are created. With the flag only new frames are > created, old frames are not selected. You could also ask the user for confirmation, when the command is going to create a new frame.