mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
convert to_thread_address_space to use TARGET_DEFAULT_FUNC
This converts to_thread_address_space to use TARGET_DEFAULT_FUNC. This method was one of a handful not using the normal target delegation approach. The only rationale here is consistency in the target vector. Built and regtested on x86-64 Fedora 20. 2014-06-04 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (default_thread_address_space): New function. (target_thread_address_space): Simplify. * target.h (struct target_ops) <to_thread_address_space>: Add TARGET_DEFAULT_FUNC.
This commit is contained in:
@@ -772,7 +772,8 @@ struct target_ops
|
||||
The default implementation always returns the inferior's
|
||||
address space. */
|
||||
struct address_space *(*to_thread_address_space) (struct target_ops *,
|
||||
ptid_t);
|
||||
ptid_t)
|
||||
TARGET_DEFAULT_FUNC (default_thread_address_space);
|
||||
|
||||
/* Target file operations. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user