summaryrefslogtreecommitdiffstats
path: root/gdb/corefile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/corefile.c')
-rw-r--r--gdb/corefile.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/corefile.c b/gdb/corefile.c
index 65814208da..ddaee62632 100644
--- a/gdb/corefile.c
+++ b/gdb/corefile.c
@@ -225,6 +225,19 @@ read_memory (memaddr, myaddr, len)
memory_error (status, memaddr);
}
+void
+read_memory_section (memaddr, myaddr, len, bfd_section)
+ CORE_ADDR memaddr;
+ char *myaddr;
+ int len;
+ asection *bfd_section;
+{
+ int status;
+ status = target_read_memory_section (memaddr, myaddr, len, bfd_section);
+ if (status != 0)
+ memory_error (status, memaddr);
+}
+
/* Like target_read_memory, but slightly different parameters. */
int
OpenPOWER on IntegriCloud