This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Use of create_new_frame from 'frame'.
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pedro Alves <palves at redhat dot com>
- Cc: andrew dot burgess at embecosm dot com, gdb-patches at sourceware dot org
- Date: Wed, 08 Jul 2015 23:06:06 +0300
- Subject: Re: [RFC] Use of create_new_frame from 'frame'.
- Authentication-results: sourceware.org; auth=none
- References: <20150708170944 dot GA17985 at embecosm dot com> <83io9uv3lb dot fsf at gnu dot org> <559D7E09 dot 6080202 at redhat dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Wed, 08 Jul 2015 20:46:17 +0100
> From: Pedro Alves <palves@redhat.com>
> CC: gdb-patches@sourceware.org
>
> > You could also ask the user for confirmation, when the command is
> > going to create a new frame.
>
> I'd rather the explicit approach, because querying works when
> in interactive mode, but not with scripts.
We've got the same situation with umpteen other commands, and we also
have a solution for scripts: we implicitly assume a NO answer.
But I'm not going to insist. I just wanted to remind us that there's
one more alternative.