This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/3] Factor code on suppress MI notification
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Mon, 27 Aug 2012 17:45:54 +0800
- Subject: [PATCH 0/3] Factor code on suppress MI notification
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?