diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-08-24 23:34:33 +0200 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-08-24 23:34:43 +0200 |
commit | a160cc4628aa125959dc65983d805500fc58512c (patch) | |
tree | ddbbdfb7f1bdef7124c24e3d183c9bc64017d94f /gdb/gdbserver | |
parent | 074f6066845cb564751d4fa604e5f591c8265b41 (diff) | |
download | gdb-a160cc4628aa125959dc65983d805500fc58512c.zip gdb-a160cc4628aa125959dc65983d805500fc58512c.tar.gz gdb-a160cc4628aa125959dc65983d805500fc58512c.tar.bz2 |
Remove unused function set_inferior_target_data
The inferior (thread) target data is always set through add_thread.
gdb/gdbserver/ChangeLog:
* inferiors.c (set_inferior_target_data): Remove.
* inferiors.h (set_inferior_target_data): Remove.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/inferiors.c | 6 | ||||
-rw-r--r-- | gdb/gdbserver/inferiors.h | 1 |
3 files changed, 5 insertions, 7 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 04dac06..0bf9610 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2017-08-24 Simon Marchi <simon.marchi@ericsson.com> + + * inferiors.c (set_inferior_target_data): Remove. + * inferiors.h (set_inferior_target_data): Remove. + 2017-08-18 Yao Qi <yao.qi@linaro.org> * Makefile.in (OBS): Add selftest.o. diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c index 5a4a0d1..8a2e5d2 100644 --- a/gdb/gdbserver/inferiors.c +++ b/gdb/gdbserver/inferiors.c @@ -314,12 +314,6 @@ inferior_target_data (struct thread_info *inferior) return inferior->target_data; } -void -set_inferior_target_data (struct thread_info *inferior, void *data) -{ - inferior->target_data = data; -} - struct regcache * inferior_regcache_data (struct thread_info *inferior) { diff --git a/gdb/gdbserver/inferiors.h b/gdb/gdbserver/inferiors.h index 2290a63..be248b0 100644 --- a/gdb/gdbserver/inferiors.h +++ b/gdb/gdbserver/inferiors.h @@ -161,7 +161,6 @@ struct inferior_list_entry * void *arg); void *inferior_target_data (struct thread_info *); -void set_inferior_target_data (struct thread_info *, void *); struct regcache *inferior_regcache_data (struct thread_info *); void set_inferior_regcache_data (struct thread_info *, struct regcache *); |