diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 2000-05-20 10:29:51 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 2000-05-20 10:29:51 +0000 |
commit | d4b2399a9c2702d7b6ed31df1187fd7eef4e0ffb (patch) | |
tree | 225c7832036569b4b3f1b77ea30fda1844c9957d /gdb/target.c | |
parent | b8166459e1d5980cef72c952352889e9cc6f8c02 (diff) | |
download | gdb-d4b2399a9c2702d7b6ed31df1187fd7eef4e0ffb.zip gdb-d4b2399a9c2702d7b6ed31df1187fd7eef4e0ffb.tar.gz gdb-d4b2399a9c2702d7b6ed31df1187fd7eef4e0ffb.tar.bz2 |
* target.h (target_memory_bfd_section): Removed declaration.
* target.c (target_memory_bfd_section): Removed.
* exec.c (xfer_memory): Removed #if'ed-out code which referenced
target_memory_bfd_section.
* target.h (target_read_memory_section): Removed declaration.
* target.c (target_read_memory_section): Removed.
(target_xfer_memory): Update, removed bfd_section argument.
(target_read_string, target_read_memory, target_write_memory):
Update for above change.
* gdbcore.h (read_memory_section): Removed declaration.
* corefile.c (read_memory_section): Removed.
* jv-lang.c (get_java_utf8_name): Changed calls to
read_memory_section to read_memory.
* printcmd.c (printf_command): Likewise.
* valops.c (value_at, value_fetch_lazy): Likewise.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/gdb/target.c b/gdb/target.c index 02ccc25..606be31 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -95,7 +95,7 @@ static void normal_target_post_startup_inferior PARAMS ((int pid)); static int target_xfer_memory PARAMS ((CORE_ADDR memaddr, char *myaddr, int len, - int write, asection * bfd_section)); + int write)); static void init_dummy_target PARAMS ((void)); @@ -836,7 +836,7 @@ target_read_string (memaddr, string, len, errnop) tlen = MIN (len, 4 - (memaddr & 3)); offset = memaddr & 3; - errcode = target_xfer_memory (memaddr & ~3, buf, 4, 0, NULL); + errcode = target_xfer_memory (memaddr & ~3, buf, 4, 0); if (errcode != 0) { /* The transfer request might have crossed the boundary to an @@ -844,7 +844,7 @@ target_read_string (memaddr, string, len, errnop) a single byte. */ tlen = 1; offset = 0; - errcode = target_xfer_memory (memaddr, buf, 1, 0, NULL); + errcode = target_xfer_memory (memaddr, buf, 1, 0); if (errcode != 0) goto done; } @@ -896,17 +896,7 @@ target_read_memory (memaddr, myaddr, len) char *myaddr; int len; { - return target_xfer_memory (memaddr, myaddr, len, 0, NULL); -} - -int -target_read_memory_section (memaddr, myaddr, len, bfd_section) - CORE_ADDR memaddr; - char *myaddr; - int len; - asection *bfd_section; -{ - return target_xfer_memory (memaddr, myaddr, len, 0, bfd_section); + return target_xfer_memory (memaddr, myaddr, len, 0); } int @@ -915,15 +905,9 @@ target_write_memory (memaddr, myaddr, len) char *myaddr; int len; { - return target_xfer_memory (memaddr, myaddr, len, 1, NULL); + return target_xfer_memory (memaddr, myaddr, len, 1); } -/* This variable is used to pass section information down to targets. This - *should* be done by adding an argument to the target_xfer_memory function - of all the targets, but I didn't feel like changing 50+ files. */ - -asection *target_memory_bfd_section = NULL; - /* Move memory to or from the targets. Iterate until all of it has been moved, if necessary. The top target gets priority; anything it doesn't want, is offered to the next one down, etc. Note the @@ -935,12 +919,11 @@ asection *target_memory_bfd_section = NULL; Result is 0 or errno value. */ static int -target_xfer_memory (memaddr, myaddr, len, write, bfd_section) +target_xfer_memory (memaddr, myaddr, len, write) CORE_ADDR memaddr; char *myaddr; int len; int write; - asection *bfd_section; { int curlen; int res; @@ -951,8 +934,6 @@ target_xfer_memory (memaddr, myaddr, len, write, bfd_section) if (len == 0) return 0; - target_memory_bfd_section = bfd_section; - /* to_xfer_memory is not guaranteed to set errno, even when it returns 0. */ errno = 0; |