[PATCH 0/3] Factor code on suppress MI notification

Yao Qi
2012-08-27T09:46:25Z

Hi,
When writing new MI notifications, I have to add 'else if (strncmp())'
stuff to suppress each new MI notification, and I don't like this way.
This patch set is to factor the code on notification suppressing.
Patch 3/3 is the major part of this set, which adds a new field
'called' in 'struct mi_cmd', and associate this field of each mi_cmd
to the flag of suppress notification we already have. It is simple
that when we want to add a new flag to suppress some notifications.

Patch 1/3 is obvious, and I'll apply it. Patch 2/3 is to define two
new macros to simply the struct initialization in array 'mi_cmds'.

Regression tested on x86_64-linux with native and gdbserver. OK to
apply?