diff options
author | Tom Tromey <tromey@redhat.com> | 2014-02-21 10:33:42 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-06-04 09:24:27 -0600 |
commit | 8eaff7cd138d8517f8c2fbc8be9b8c6eaf649bd9 (patch) | |
tree | 93cb713503e1e533b60619692d6529ed82bfca18 /gdb/target.h | |
parent | 03388bb71c1a1d1c613bb963f3d9287cfd100138 (diff) | |
download | gdb-8eaff7cd138d8517f8c2fbc8be9b8c6eaf649bd9.zip gdb-8eaff7cd138d8517f8c2fbc8be9b8c6eaf649bd9.tar.gz gdb-8eaff7cd138d8517f8c2fbc8be9b8c6eaf649bd9.tar.bz2 |
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.
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 face210..b0b9e89 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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. */ |