projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdbserver: turn target op 'thread_stopped' into a method
[deliverable/binutils-gdb.git]
/
gdbserver
/
target.cc
diff --git
a/gdbserver/target.cc
b/gdbserver/target.cc
index 4f8d91c171f30bf1d8f7096be06eebd2bbd6b0b8..b44170a7cddc86f43cc99d8fb6c0d4cb2bb534de 100644
(file)
--- a/
gdbserver/target.cc
+++ b/
gdbserver/target.cc
@@
-66,8
+66,8
@@
prepare_to_access_memory (void)
{
if (mythread_alive (thread->id))
{
{
if (mythread_alive (thread->id))
{
- if (stopped == NULL && the_target->
thread_stopped != NULL
- && thread_stopped (thread))
+ if (stopped == NULL && the_target->
pt->supports_thread_stopped ()
+ && t
arget_t
hread_stopped (thread))
stopped = thread;
if (first == NULL)
stopped = thread;
if (first == NULL)
@@
-626,3
+626,15
@@
process_target::write_pc (regcache *regcache, CORE_ADDR pc)
{
gdb_assert_not_reached ("process_target::write_pc: Unable to update PC");
}
{
gdb_assert_not_reached ("process_target::write_pc: Unable to update PC");
}
+
+bool
+process_target::supports_thread_stopped ()
+{
+ return false;
+}
+
+bool
+process_target::thread_stopped (thread_info *thread)
+{
+ gdb_assert_not_reached ("target op thread_stopped not supported");
+}
This page took
0.023477 seconds
and
4
git commands to generate.