aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:44:08 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:35 -0700
commitbd7ae0f5ac99eac95313ae91ae705c45f669f20f (patch)
tree0fac3b51ca519d64aaf9d45fd1a75af660fc41fa
parentd9e68a2c60bc6a2e5e698f5849a20df208ac130a (diff)
downloadgdb-bd7ae0f5ac99eac95313ae91ae705c45f669f20f.zip
gdb-bd7ae0f5ac99eac95313ae91ae705c45f669f20f.tar.gz
gdb-bd7ae0f5ac99eac95313ae91ae705c45f669f20f.tar.bz2
Add target_ops argument to to_get_tib_address
2014-02-19 Tom Tromey <tromey@redhat.com> * windows-nat.c (windows_get_tib_address): Add 'self' argument. * target.h (struct target_ops) <to_get_tib_address>: Add argument. (target_get_tib_address): Add argument. * target.c (update_current_target): Update. * remote.c (remote_get_tib_address): Add 'self' argument.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/remote.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h5
-rw-r--r--gdb/windows-nat.c3
5 files changed, 15 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c9cf31c..108c750 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * windows-nat.c (windows_get_tib_address): Add 'self' argument.
+ * target.h (struct target_ops) <to_get_tib_address>: Add argument.
+ (target_get_tib_address): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_get_tib_address): Add 'self' argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_set_trace_notes>: Add argument.
(target_set_trace_notes): Add argument.
* target.c (update_current_target): Update.
diff --git a/gdb/remote.c b/gdb/remote.c
index 1e33ed7..bd420aa 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -9320,7 +9320,7 @@ remote_get_thread_local_address (struct target_ops *ops,
Returns 1 if ptid is found and thread_local_base is non zero. */
static int
-remote_get_tib_address (ptid_t ptid, CORE_ADDR *addr)
+remote_get_tib_address (struct target_ops *self, ptid_t ptid, CORE_ADDR *addr)
{
if (remote_protocol_packets[PACKET_qGetTIBAddr].support != PACKET_DISABLE)
{
diff --git a/gdb/target.c b/gdb/target.c
index d61d100..e020add 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -918,7 +918,7 @@ update_current_target (void)
const char *, const char *, const char *))
return_zero);
de_fault (to_get_tib_address,
- (int (*) (ptid_t, CORE_ADDR *))
+ (int (*) (struct target_ops *, ptid_t, CORE_ADDR *))
tcomplain);
de_fault (to_set_permissions,
(void (*) (void))
diff --git a/gdb/target.h b/gdb/target.h
index 1acd719..d4620f3 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -859,7 +859,8 @@ struct target_ops
/* Return the address of the start of the Thread Information Block
a Windows OS specific feature. */
- int (*to_get_tib_address) (ptid_t ptid, CORE_ADDR *addr);
+ int (*to_get_tib_address) (struct target_ops *,
+ ptid_t ptid, CORE_ADDR *addr);
/* Send the new settings of write permission variables. */
void (*to_set_permissions) (void);
@@ -1861,7 +1862,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
(user), (notes), (stopnotes))
#define target_get_tib_address(ptid, addr) \
- (*current_target.to_get_tib_address) ((ptid), (addr))
+ (*current_target.to_get_tib_address) (&current_target, (ptid), (addr))
#define target_set_permissions() \
(*current_target.to_set_permissions) ()
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 164b53f..e0dac7b 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -2570,7 +2570,8 @@ windows_xfer_partial (struct target_ops *ops, enum target_object object,
Returns 1 if ptid is found and sets *ADDR to thread_local_base. */
static int
-windows_get_tib_address (ptid_t ptid, CORE_ADDR *addr)
+windows_get_tib_address (struct target_ops *self,
+ ptid_t ptid, CORE_ADDR *addr)
{
thread_info *th;