This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [rfa/cli] Tighten add_set_enum_cmd() interface
- To: Fernando Nasser <fnasser at cygnus dot com>
- Subject: Re: [rfa/cli] Tighten add_set_enum_cmd() interface
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 08 Jun 2000 11:55:52 +1000
- CC: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Organization: Cygnus Solutions
- References: <393DF78F.1E366390@cygnus.com> <393E69BE.ED083633@cygnus.com>
Fernando Nasser wrote:
>
> Sure, go ahead.
Oops, the attatched got screwed up when I created the diff. Its also
been applied.
> Thanks.
>
> Fernando
>
> P.S.: This is just one more Band-Aid. The cli interface is old and must be
> revamped.
Very true.
Andrew
Thu Jun 8 11:41:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
* infrun.c (follow_inferior_fork): Bad merge from below. Compare
strings using follow_fork_mode_ask and not "ask".
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.15
diff -p -r1.15 infrun.c
*** infrun.c 2000/06/08 00:52:56 1.15
--- infrun.c 2000/06/08 01:45:19
*************** follow_inferior_fork (int parent_pid, in
*** 466,472 ****
const char *follow_mode = follow_fork_mode_string;
/* Or, did the user not know, and want us to ask? */
! if (follow_fork_mode_string == "ask")
{
internal_error ("follow_inferior_fork: \"ask\" mode not implemented");
/* follow_mode = follow_fork_mode_...; */
--- 466,472 ----
const char *follow_mode = follow_fork_mode_string;
/* Or, did the user not know, and want us to ask? */
! if (follow_fork_mode_string == follow_fork_mode_ask)
{
internal_error ("follow_inferior_fork: \"ask\" mode not implemented");
/* follow_mode = follow_fork_mode_...; */