summaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-06-12 18:38:36 +0000
committerPedro Alves <palves@redhat.com>2009-06-12 18:38:36 +0000
commit4b477ade4f01d4510ac44f4251b511b11d593318 (patch)
tree2facc39d66a9f4fbf13fb72e9fb05bc5de7d2686 /gdb/exec.c
parent0e27a8f69b7c9365e4ec543a3d27a24c968a7c16 (diff)
downloadbinutils-gdb-4b477ade4f01d4510ac44f4251b511b11d593318.tar.gz
* exec.h (section_table_xfer_memory_partial): Improve description,
mention SECTION_NAME. * exec.c (section_table_xfer_memory_partial): Remove stale description.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index dbf9cff9eea..e1d429073d1 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -559,26 +559,6 @@ map_vmap (bfd *abfd, bfd *arch)
return vp;
}
-/* Read or write from BFD executable files.
-
- MEMADDR is an address within the target address space, MYADDR is an
- address within GDB address-space where data is written to, LEN is
- length of buffer, and WRITE indicates whether to read or write.
- SECTIONS and SECTIONS_END defines a section table holding sections
- from possibly multiple BFDs.
-
- If SECTION_NAME is not NULL, only access sections with that same
- name.
-
- Result is a length:
-
- 0: We cannot handle this address and length.
- > 0: We have handled N bytes starting at this address.
- (If N == length, we did it all.) We might be able
- to handle more bytes beyond this length, but no
- promises.
- < 0: We cannot handle this address, but if somebody
- else handles (-N) bytes, we can start from there. */
int
section_table_xfer_memory_partial (gdb_byte *readbuf, const gdb_byte *writebuf,
@@ -595,7 +575,6 @@ section_table_xfer_memory_partial (gdb_byte *readbuf, const gdb_byte *writebuf,
if (len <= 0)
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
-
for (p = sections; p < sections_end; p++)
{
if (section_name && strcmp (section_name, p->the_bfd_section->name) != 0)