This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/6] attach to command_option-changed observer.


>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> +@item =option-changed,option=@var{option},value=@var{value}
Yao> +Reports that an option of the command @code{set @var{option}} is
Yao> +changed to @var{value}.

I think it would be useful to MI client authors if this were a bit more
specific; in particular describing what happens for a multi-word "set"
command like "set print elements 5".

Yao> +  ui_out_redirect (mi_uiout, mi->event_channel);
Yao> +  ui_out_field_string (mi_uiout, "option", option);
Yao> +  ui_out_field_string (mi_uiout, "value", value);
Yao> +  ui_out_redirect (mi_uiout, NULL);

Nice and simple :-)

Yao> +  /* Breakpoint notification suppressed? */
Yao> +  int breakpoint;
Yao> +  /* Command option changed notification suppressed? */
Yao> +  int option_changed;

Two spaces after the "?"s.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]