From fc6691b2590f61a2f1deeb9d73e7df23b1ced88a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:35:52 -0700 Subject: Add target_ops argument to to_make_corefile_notes 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. (target_make_corefile_notes): Add argument. * target.c (dummy_make_corefile_notes): Add 'self' argument. * procfs.c (procfs_make_note_section): Add 'self' argument. (procfs_make_note_section): Add 'self' argument. (procfs_make_note_section): Add 'self' argument. * linux-nat.c (linux_nat_make_corefile_notes): Add 'self' argument. * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument. * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument. * exec.c (exec_make_note_section): Add 'self' argument. (exec_make_note_section): Add 'self' argument. --- gdb/target.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/target.h') diff --git a/gdb/target.h b/gdb/target.h index 8f7d38c..7faf059 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -550,7 +550,7 @@ struct target_ops int (*to_find_memory_regions) (struct target_ops *, find_memory_region_ftype func, void *data); /* make_corefile_notes support method for gcore */ - char * (*to_make_corefile_notes) (bfd *, int *); + char * (*to_make_corefile_notes) (struct target_ops *, bfd *, int *); /* get_bookmark support method for bookmarks */ gdb_byte * (*to_get_bookmark) (char *, int); /* goto_bookmark support method for bookmarks */ @@ -1568,7 +1568,7 @@ extern char *target_thread_name (struct thread_info *); */ #define target_make_corefile_notes(BFD, SIZE_P) \ - (current_target.to_make_corefile_notes) (BFD, SIZE_P) + (current_target.to_make_corefile_notes) (¤t_target, BFD, SIZE_P) /* Bookmark interfaces. */ #define target_get_bookmark(ARGS, FROM_TTY) \ -- cgit v1.1