diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-07-12 18:13:45 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-07-12 18:13:45 +0000 |
commit | 20b5ceaa3a5f4f3f36bb26600ec685c0b071834c (patch) | |
tree | a7b2d9bb42c515d0f8f0ba0f1c788ebca0cc5254 /gdb/procfs.c | |
parent | f828b7d4359cb6d35f4cc1c4ca80e89b58128179 (diff) | |
download | gdb-20b5ceaa3a5f4f3f36bb26600ec685c0b071834c.tar.gz |
* target.c (target_read): Stop if target_read_partial returns 0
when some bytes have already been read.
(target_write): Likewise for target_write_partial.
(target_read_partial, target_write_partial): Make static.
(target_read_alloc): New.
* target.h: Doc fixes.
(target_read_partial, target_write_partial): Delete prototypes.
(target_read_alloc): New prototype.
* auxv.c (target_auxv_read): Delete.
(target_auxv_search, fprint_target_auxv): Use target_read_alloc.
* auxv.h (target_auxv_read): Delete prototype.
* avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
* ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
* linux-nat.c (linux_nat_make_corefile_notes): Likewise.
* procfs.c (procfs_make_note_section): Likewise.
* remote.c (remote_xfer_partial): Don't loop here.
* sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 03fcadd017a..23ee3fb9250 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -6130,7 +6130,8 @@ procfs_make_note_section (bfd *obfd, int *note_size) note_data = thread_args.note_data; } - auxv_len = target_auxv_read (¤t_target, &auxv); + auxv_len = target_read_alloc (¤t_target, TARGET_OBJECT_AUXV, + NULL, &auxv); if (auxv_len > 0) { note_data = elfcore_write_note (obfd, note_data, note_size, |