diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:46:03 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:15 -0700 |
commit | 770234d33bd301dd1893457a90e4b02cfec5c87a (patch) | |
tree | e0f91a43023a20ac814fe623f56fa055fe970567 /gdb/target.h | |
parent | 09b0dc2b57ce52fc478710797dabdf46bfd5abd1 (diff) | |
download | gdb-770234d33bd301dd1893457a90e4b02cfec5c87a.zip gdb-770234d33bd301dd1893457a90e4b02cfec5c87a.tar.gz gdb-770234d33bd301dd1893457a90e4b02cfec5c87a.tar.bz2 |
convert to_pid_to_str
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_pid_to_str): Unconditionally delegate.
(init_dummy_target): Don't initialize to_pid_to_str.
(default_pid_to_str): Rename from dummy_pid_to_str.
* target.h (struct target_ops) <to_pid_to_str>: Use
TARGET_DEFAULT_FUNC.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h index 7b36e48..29d210a 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -561,7 +561,8 @@ struct target_ops int (*to_thread_alive) (struct target_ops *, ptid_t ptid); void (*to_find_new_threads) (struct target_ops *) TARGET_DEFAULT_IGNORE (); - char *(*to_pid_to_str) (struct target_ops *, ptid_t); + char *(*to_pid_to_str) (struct target_ops *, ptid_t) + TARGET_DEFAULT_FUNC (default_pid_to_str); char *(*to_extra_thread_info) (struct target_ops *, struct thread_info *) TARGET_DEFAULT_RETURN (0); char *(*to_thread_name) (struct target_ops *, struct thread_info *) |