]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/target.h
Add target_xfer_partial_ftype
authorYao Qi <yao@codesourcery.com>
Mon, 4 Nov 2013 09:53:56 +0000 (17:53 +0800)
committerYao Qi <yao@codesourcery.com>
Wed, 18 Dec 2013 03:47:03 +0000 (11:47 +0800)
commit4ac248ca0beb1dfdb56716a440c4558b89fd7b1a
treecddff8dd11f2b414f47ccb5ff1b44e5290121543
parentcde33bf1035aac8e2e35c4699544dcc166f2054d
Add target_xfer_partial_ftype

This patch adds a typedef target_xfer_partial_ftype.  When we change
the signature of xfer_partial functions (for example, adding a new
parameter), we don't have to modify all of their declarations.

This patch also updates the type of parameters of target_xfer_partial
from "void *" to "gdb_byte *".

gdb:

2013-12-18  Yao Qi  <yao@codesourcery.com>

* target.h (target_xfer_partial_ftype): New typedef.
(target_xfer_partial): Update declaration.
* auxv.h (memory_xfer_auxv): Likewise.
* ia64-hpux-nat.c (super_xfer_partial): Likewise.
* ia64-linux-nat.c (super_xfer_partial): Likewise.
* linux-nat.c (super_xfer_partial): Likewise.
* procfs.c (procfs_xfer_partial): Likewise.
* record-full.c (record_full_beneath_to_xfer_partial):
(tmp_to_xfer_partial): Likewise.
* sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
* target.c (default_xfer_partial): Likewise.
(current_xfer_partial): Likewise.
(target_xfer_partial): Change parameter type to 'gdb_byte *'.
gdb/ChangeLog
gdb/auxv.h
gdb/ia64-hpux-nat.c
gdb/ia64-linux-nat.c
gdb/linux-nat.c
gdb/procfs.c
gdb/record-full.c
gdb/sparc-nat.c
gdb/target.c
gdb/target.h