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]

[PATCH 2/2] gdbserver:Remove async from target_ops


Hi,
After patch 1/2 is applied, 'target_async' is not used in common code any
more, this patch is to clean up.

gdb/gdbserver:

2012-09-18  Yao Qi  <yao@codesourcery.com>

	* target.h (struct target_ops) <asnyc>: Remove.
	(target_async): Remove macro.
	* linux-low.c (linux_target_ops): Update.
	* lynx-low.c (lynx_target_ops): Update.
	* nto-low.c (nto_target_ops): Update.
	* win32-low.c (win32_target_ops): Update.
---
 gdb/gdbserver/linux-low.c |    1 -
 gdb/gdbserver/lynx-low.c  |    1 -
 gdb/gdbserver/nto-low.c   |    1 -
 gdb/gdbserver/target.h    |    7 -------
 gdb/gdbserver/win32-low.c |    1 -
 5 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index faed578..f4d9a7d 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -5823,7 +5823,6 @@ static struct target_ops linux_target_ops = {
   linux_qxfer_osdata,
   linux_xfer_siginfo,
   linux_supports_non_stop,
-  linux_async,
   linux_start_non_stop,
   linux_supports_multi_process,
 #ifdef USE_THREAD_DB
diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c
index 2c7ab6e..38029b8 100644
--- a/gdb/gdbserver/lynx-low.c
+++ b/gdb/gdbserver/lynx-low.c
@@ -755,7 +755,6 @@ static struct target_ops lynx_target_ops = {
   NULL,  /* qxfer_osdata */
   NULL,  /* qxfer_siginfo */
   NULL,  /* supports_non_stop */
-  NULL,  /* async */
   NULL,  /* start_non_stop */
   NULL,  /* supports_multi_process */
   NULL,  /* handle_monitor_command */
diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c
index 73618cd..1a0f5c4 100644
--- a/gdb/gdbserver/nto-low.c
+++ b/gdb/gdbserver/nto-low.c
@@ -933,7 +933,6 @@ static struct target_ops nto_target_ops = {
   NULL, /* nto_qxfer_osdata */
   NULL, /* xfer_siginfo */
   nto_supports_non_stop,
-  NULL, /* async */
   NULL  /* start_non_stop */
 };
 
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h
index 9f96e04..6b60e13 100644
--- a/gdb/gdbserver/target.h
+++ b/gdb/gdbserver/target.h
@@ -292,10 +292,6 @@ struct target_ops
 
   int (*supports_non_stop) (void);
 
-  /* Enables async target events.  Returns the previous enable
-     state.  */
-  int (*async) (int enable);
-
   /* Switch to non-stop (1) or all-stop (0) mode.  Return 0 on
      success, -1 otherwise.  */
   int (*start_non_stop) (int);
@@ -432,9 +428,6 @@ int kill_inferior (int);
 #define target_supports_non_stop() \
   (the_target->supports_non_stop ? (*the_target->supports_non_stop ) () : 0)
 
-#define target_async(enable) \
-  (the_target->async ? (*the_target->async) (enable) : 0)
-
 #define target_supports_multi_process() \
   (the_target->supports_multi_process ? \
    (*the_target->supports_multi_process) () : 0)
diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c
index 4d5fe67..cbdf656 100644
--- a/gdb/gdbserver/win32-low.c
+++ b/gdb/gdbserver/win32-low.c
@@ -1806,7 +1806,6 @@ static struct target_ops win32_target_ops = {
   NULL, /* qxfer_osdata */
   NULL, /* qxfer_siginfo */
   NULL, /* supports_non_stop */
-  NULL, /* async */
   NULL, /* start_non_stop */
   NULL, /* supports_multi_process */
   NULL, /* handle_monitor_command */
-- 
1.7.7.6


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