diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 13:53:09 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:47:38 -0700 |
commit | 4229b31de20c8782f1b6d79a4dd304041ead26b7 (patch) | |
tree | 5da48083b561a79781b99ded5b18510645237a12 /gdb/target.c | |
parent | 43eba180841a33f29ccc7130e9892ecf852e7c87 (diff) | |
download | gdb-4229b31de20c8782f1b6d79a4dd304041ead26b7.zip gdb-4229b31de20c8782f1b6d79a4dd304041ead26b7.tar.gz gdb-4229b31de20c8782f1b6d79a4dd304041ead26b7.tar.bz2 |
convert to_get_ada_task_ptid
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (update_current_target): Don't inherit or default
to_get_ada_task_ptid.
* target.h (struct target_ops) <to_get_ada_task_ptid>: Use
TARGET_DEFAULT_FUNC.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/target.c b/gdb/target.c index 6361104..083d6b5 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -57,6 +57,9 @@ static int default_region_ok_for_hw_watchpoint (struct target_ops *, static void default_rcmd (struct target_ops *, char *, struct ui_file *); +static ptid_t default_get_ada_task_ptid (struct target_ops *self, + long lwp, long tid); + static void tcomplain (void) ATTRIBUTE_NORETURN; static int nomemory (CORE_ADDR, char *, int, int, struct target_ops *); @@ -680,7 +683,7 @@ update_current_target (void) /* Do not inherit to_execution_direction. */ /* Do not inherit to_thread_architecture. */ /* Do not inherit to_read_description. */ - INHERIT (to_get_ada_task_ptid, t); + /* Do not inherit to_get_ada_task_ptid. */ /* Do not inherit to_search_memory. */ INHERIT (to_supports_multi_process, t); INHERIT (to_supports_enable_disable_tracepoint, t); @@ -749,9 +752,6 @@ update_current_target (void) (void (*) (struct target_ops *, ptid_t)) target_ignore); current_target.to_read_description = NULL; - de_fault (to_get_ada_task_ptid, - (ptid_t (*) (struct target_ops *, long, long)) - default_get_ada_task_ptid); de_fault (to_supports_multi_process, (int (*) (struct target_ops *)) return_zero); |