diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 10:57:18 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:47:32 -0700 |
commit | 16f796b16a0a7c16c8c11800136b99e53984f4c2 (patch) | |
tree | a3f1dcb6c1e16a643acad5c20952e11a052efdf6 /gdb/target.c | |
parent | 0b5a271985687f3cfaf22a301e5ad4600df1302b (diff) | |
download | gdb-16f796b16a0a7c16c8c11800136b99e53984f4c2.zip gdb-16f796b16a0a7c16c8c11800136b99e53984f4c2.tar.gz gdb-16f796b16a0a7c16c8c11800136b99e53984f4c2.tar.bz2 |
convert to_make_corefile_notes
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (update_current_target): Don't inherit or default
to_make_corefile_notes.
(init_dummy_target): Don't initialize to_make_corefile_notes.
* target.h (struct target_ops) <to_make_corefile_notes>: Use
TARGET_DEFAULT_FUNC.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c index 767bcad..911c497 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -82,6 +82,9 @@ static int dummy_find_memory_regions (struct target_ops *self, find_memory_region_ftype ignore1, void *ignore2); +static char *dummy_make_corefile_notes (struct target_ops *self, + bfd *ignore1, int *ignore2); + static int find_default_can_async_p (struct target_ops *ignore); static int find_default_is_async_p (struct target_ops *ignore); @@ -666,7 +669,7 @@ update_current_target (void) /* Do not inherit to_is_async_p. */ /* Do not inherit to_async. */ /* Do not inherit to_find_memory_regions. */ - INHERIT (to_make_corefile_notes, t); + /* Do not inherit to_make_corefile_notes. */ INHERIT (to_get_bookmark, t); INHERIT (to_goto_bookmark, t); /* Do not inherit to_get_thread_local_address. */ @@ -3707,7 +3710,6 @@ init_dummy_target (void) = find_default_supports_disable_randomization; dummy_target.to_pid_to_str = dummy_pid_to_str; dummy_target.to_stratum = dummy_stratum; - dummy_target.to_make_corefile_notes = dummy_make_corefile_notes; dummy_target.to_get_bookmark = dummy_get_bookmark; dummy_target.to_goto_bookmark = dummy_goto_bookmark; dummy_target.to_has_all_memory = (int (*) (struct target_ops *)) return_zero; |