From: Yao Qi <yao@codesourcery.com>
To: <gdb-patches@sourceware.org>
Subject: [PATCH 2/2] gdbserver:Remove async from target_ops
Date: Tue, 18 Sep 2012 09:49:00 -0000 [thread overview]
Message-ID: <1347961672-18495-3-git-send-email-yao@codesourcery.com> (raw)
In-Reply-To: <1347961672-18495-1-git-send-email-yao@codesourcery.com>
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
next prev parent reply other threads:[~2012-09-18 9:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-18 9:49 [RFC 0/2, gdbserver] Set linux target in async mode in default Yao Qi
2012-09-18 9:49 ` Yao Qi [this message]
2012-09-18 9:49 ` [PATCH 1/2] gdbserver:Set " Yao Qi
2012-09-18 14:12 ` [RFC 0/2, gdbserver] Set " Marc Khouzam
2012-09-18 14:36 ` Yao Qi
2012-09-18 14:39 ` Marc Khouzam
2012-09-25 16:23 ` Pedro Alves
2012-09-27 3:16 ` Yao Qi
2012-10-12 12:00 ` Yao Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1347961672-18495-3-git-send-email-yao@codesourcery.com \
--to=yao@codesourcery.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox