diff options
author | Yao Qi <yao@codesourcery.com> | 2014-01-03 21:11:46 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-01-14 22:20:44 +0800 |
commit | b55e14c72c74ad4bcab302f9a81651ced881c415 (patch) | |
tree | c205e300504eca0a78932187e08c86fd27080ef9 /gdb/target.c | |
parent | 0580464083068647909386211d6a3f22b3d1cf0e (diff) | |
download | binutils-b55e14c72c74ad4bcab302f9a81651ced881c415.zip binutils-b55e14c72c74ad4bcab302f9a81651ced881c415.tar.gz binutils-b55e14c72c74ad4bcab302f9a81651ced881c415.tar.bz2 |
Change to_xfer_partial 'len' type to ULONGEST.
This patch changes to_xfer_partial's len's type to ULONGEST, and
adjust its implementations.
gdb:
2014-01-14 Yao Qi <yao@codesourcery.com>
* target.h (target_xfer_partial_ftype): Update.
(struct target_ops) <to_xfer_partial>: Change 'len' type to
ULONGEST.
* aix-thread.c (aix_thread_xfer_partial): Change type of
argument 'len' to ULONGEST.
* auxv.c (procfs_xfer_auxv): Likewise.
(ld_so_xfer_auxv): Likewise.
(memory_xfer_auxv): Likewise.
* bfd-target.c (target_bfd_xfer_partial): Likewise.
* bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
* bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
* corelow.c (core_xfer_partial): Likewise.
* ctf.c (ctf_xfer_partial): Likewise.
* darwin-nat.c (darwin_read_write_inferior): Likewise. Use
'%u'.
(darwin_read_dyld_info): Likewise.
(darwin_xfer_partial): Likewise.
* exec.c (section_table_xfer_memory_partial): Likewise.
(exec_xfer_partial): Likewise.
* exec.h (section_table_xfer_memory_partial): Update
declaration.
* gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
instead of plongest.
(gnu_xfer_partial): Likewise.
* ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
(ia64_hpux_xfer_solib_got): Likewise.
(ia64_hpux_xfer_partial): Likewise.
* ia64-linux-nat.c (ia64_linux_xfer_partial):
* inf-ptrace.c (inf_ptrace_xfer_partial):
* inf-ttrace.c (inf_ttrace_xfer_partial):
* linux-nat.c (linux_xfer_siginfo): Likewise.
(linux_nat_xfer_partial): Likewise.
(spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
(linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
* monitor.c (monitor_xfer_memory): Likewise.
(monitor_xfer_partial): Likewise.
* procfs.c (procfs_xfer_partial): Likewise.
* record-full.c (record_full_xfer_partial): Likewise.
(record_full_core_xfer_partial): Likewise.
* remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
instead of plongest.
(gdbsim_xfer_partial): Likewise.
* remote.c (remote_xfer_partial): Likewise.
* rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
* rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
declaration.
* rs6000-nat.c (rs6000_xfer_partial): Likewise.
(rs6000_xfer_shared_libraries): Likewise.
* sol-thread.c (sol_thread_xfer_partial): Likewise.
* sparc-nat.c (sparc_xfer_wcookie): Likewise.
(sparc_xfer_partial): Likewise.
* spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
(spu_xfer_partial): Likewise.
* spu-multiarch.c (spu_xfer_partial): Likewise.
* target.c (target_read_live_memory): Likewise.
(memory_xfer_live_readonly_partial): Likewise.
(memory_xfer_partial, memory_xfer_partial_1): Likewise.
(target_xfer_partial, default_xfer_partial): Likewise.
(current_xfer_partial): Likewise.
* tracepoint.c (tfile_xfer_partial): Likewise.
* windows-nat.c (windows_xfer_memory): Likewise. Call
pulongest instead of plongest.
(windows_xfer_partial): Likewise.
(windows_xfer_shared_libraries): Likewise.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/target.c b/gdb/target.c index 42a8741..25002b3 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1317,7 +1317,7 @@ target_section_by_addr (struct target_ops *target, CORE_ADDR addr) static LONGEST target_read_live_memory (enum target_object object, - ULONGEST memaddr, gdb_byte *myaddr, LONGEST len) + ULONGEST memaddr, gdb_byte *myaddr, ULONGEST len) { LONGEST ret; struct cleanup *cleanup; @@ -1347,7 +1347,7 @@ static LONGEST memory_xfer_live_readonly_partial (struct target_ops *ops, enum target_object object, gdb_byte *readbuf, ULONGEST memaddr, - LONGEST len) + ULONGEST len) { struct target_section *secp; struct target_section_table *table; @@ -1427,7 +1427,7 @@ raw_memory_xfer_partial (struct target_ops *ops, void *readbuf, static LONGEST memory_xfer_partial_1 (struct target_ops *ops, enum target_object object, void *readbuf, const void *writebuf, ULONGEST memaddr, - LONGEST len) + ULONGEST len) { LONGEST res; int reg_len; @@ -1625,7 +1625,7 @@ memory_xfer_partial_1 (struct target_ops *ops, enum target_object object, static LONGEST memory_xfer_partial (struct target_ops *ops, enum target_object object, void *readbuf, const void *writebuf, ULONGEST memaddr, - LONGEST len) + ULONGEST len) { int res; @@ -1690,7 +1690,7 @@ LONGEST target_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { LONGEST retval; @@ -1729,7 +1729,7 @@ target_xfer_partial (struct target_ops *ops, host_address_to_string (readbuf), host_address_to_string (writebuf), core_addr_to_string_nz (offset), - plongest (len), plongest (retval)); + pulongest (len), plongest (retval)); if (readbuf) myaddr = readbuf; @@ -1964,7 +1964,7 @@ show_trust_readonly (struct ui_file *file, int from_tty, static LONGEST default_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, - const gdb_byte *writebuf, ULONGEST offset, LONGEST len) + const gdb_byte *writebuf, ULONGEST offset, ULONGEST len) { if (object == TARGET_OBJECT_MEMORY && ops->deprecated_xfer_memory != NULL) @@ -2010,7 +2010,7 @@ default_xfer_partial (struct target_ops *ops, enum target_object object, static LONGEST current_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, - const gdb_byte *writebuf, ULONGEST offset, LONGEST len) + const gdb_byte *writebuf, ULONGEST offset, ULONGEST len) { if (ops->beneath != NULL) return ops->beneath->to_xfer_partial (ops->beneath, object, annex, |