diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:34:22 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:54 -0700 |
commit | 503a628d9bced852eb0d5da7eac40fa560c26b17 (patch) | |
tree | 9b3b06e0c7448d3d320d05d75cd7a988594e2b7a /gdb/target.c | |
parent | c15906d8e64c7083787ae1548f614f2938089771 (diff) | |
download | gdb-503a628d9bced852eb0d5da7eac40fa560c26b17.zip gdb-503a628d9bced852eb0d5da7eac40fa560c26b17.tar.gz gdb-503a628d9bced852eb0d5da7eac40fa560c26b17.tar.bz2 |
Add target_ops argument to to_thread_name
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_thread_name>: Add argument.
* target.c (target_thread_name): Add argument.
(update_current_target): Update.
* linux-nat.c (linux_nat_thread_name): Add 'self' argument.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c index 92c2e76..03e4fe4 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -822,7 +822,7 @@ update_current_target (void) (char *(*) (struct target_ops *, struct thread_info *)) return_null); de_fault (to_thread_name, - (char *(*) (struct thread_info *)) + (char *(*) (struct target_ops *, struct thread_info *)) return_null); de_fault (to_stop, (void (*) (ptid_t)) @@ -2771,7 +2771,7 @@ target_thread_name (struct thread_info *info) for (t = current_target.beneath; t != NULL; t = t->beneath) { if (t->to_thread_name != NULL) - return (*t->to_thread_name) (info); + return (*t->to_thread_name) (t, info); } return NULL; |