aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/target.h
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-04-19 05:05:11 +0000
committerYao Qi <yao@codesourcery.com>2012-04-19 05:05:11 +0000
commit3e10640f3c843093ec9a8e95a9cd5c1b81dc156f (patch)
tree4aa721c8c7bc312e7227d673b8ca32da0a3e3f6e /gdb/gdbserver/target.h
parent48fe46695af35dab1aaa2f35bc2b663d0a4eea63 (diff)
downloadgdb-3e10640f3c843093ec9a8e95a9cd5c1b81dc156f.zip
gdb-3e10640f3c843093ec9a8e95a9cd5c1b81dc156f.tar.gz
gdb-3e10640f3c843093ec9a8e95a9cd5c1b81dc156f.tar.bz2
gdb/gdbserver/
* remote-utils.c (prepare_resume_reply): Replace with macro target_core_of_thread. * server.c (handle_qxfer_threads_proper): Likewise. * target.h (traget_core_of_thread): New macro.
Diffstat (limited to 'gdb/gdbserver/target.h')
-rw-r--r--gdb/gdbserver/target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h
index 256cfd9..dcf0230 100644
--- a/gdb/gdbserver/target.h
+++ b/gdb/gdbserver/target.h
@@ -540,6 +540,10 @@ ptid_t mywait (ptid_t ptid, struct target_waitstatus *ourstatus, int options,
(*the_target->done_accessing_memory) (); \
} while (0)
+#define target_core_of_thread(ptid) \
+ (the_target->core_of_thread ? (*the_target->core_of_thread) (ptid) \
+ : -1)
+
int read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len);
int write_inferior_memory (CORE_ADDR memaddr, const unsigned char *myaddr,