This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] PR cli/21688: Fix multi-line/inline command differentiation
- From: Jerome Guitton <guitton at adacore dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>
- Date: Thu, 29 Jun 2017 14:50:59 +0200
- Subject: Re: [PATCH] PR cli/21688: Fix multi-line/inline command differentiation
- Authentication-results: sourceware.org; auth=none
- References: <20170629020527.468-1-sergiodj@redhat.com>
Sergio Durigan Junior (sergiodj@redhat.com):
> The problem happens because, on cli/cli-script.c:process_next_line,
> GDB is not using the command line string to identify which command to
> run, but it instead using the 'struct cmd_list_element *' that is
> obtained by using the mentioned string. The problem with that is that
> the 'struct cmd_list_element *' doesn't have any information on
> whether the command issued by the user is a multi-line or inline one.
Indeed. Thank you for catching this bug!