mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
Add target_ops argument to to_get_ada_task_ptid
2014-02-19 Tom Tromey <tromey@redhat.com> * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument. * target.h (struct target_ops) <to_get_ada_task_ptid>: Add argument. (target_get_ada_task_ptid): Add argument. * target.c (update_current_target): Update. (default_get_ada_task_ptid): Add 'self' argument. * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument. * remote.c (remote_get_ada_task_ptid): Add 'self' argument. * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self' argument. * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self' argument. * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self' argument. * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self' argument. * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument. * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self' argument.
This commit is contained in:
@ -641,7 +641,8 @@ struct target_ops
|
||||
based on LWP and THREAD. These values are extracted from the
|
||||
task Private_Data section of the Ada Task Control Block, and
|
||||
their interpretation depends on the target. */
|
||||
ptid_t (*to_get_ada_task_ptid) (long lwp, long thread);
|
||||
ptid_t (*to_get_ada_task_ptid) (struct target_ops *,
|
||||
long lwp, long thread);
|
||||
|
||||
/* Read one auxv entry from *READPTR, not reading locations >= ENDPTR.
|
||||
Return 0 if *READPTR is already at the end of the buffer.
|
||||
@ -1702,7 +1703,7 @@ extern int target_masked_watch_num_registers (CORE_ADDR addr, CORE_ADDR mask);
|
||||
extern const struct target_desc *target_read_description (struct target_ops *);
|
||||
|
||||
#define target_get_ada_task_ptid(lwp, tid) \
|
||||
(*current_target.to_get_ada_task_ptid) (lwp,tid)
|
||||
(*current_target.to_get_ada_task_ptid) (¤t_target, lwp,tid)
|
||||
|
||||
/* Utility implementation of searching memory. */
|
||||
extern int simple_search_memory (struct target_ops* ops,
|
||||
|
Reference in New Issue
Block a user