diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-05-09 21:20:35 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-05-09 21:20:35 +0000 |
commit | fc1a4b4705305014e091a8922aa6cba4127b8dcc (patch) | |
tree | f1d422269adbdadf4e11ec7c7ae346ddfce23c14 /gdb/target.c | |
parent | dbdb27ec2d5ddeb8a214181881ab616ebe47b0cf (diff) | |
download | gdb-fc1a4b4705305014e091a8922aa6cba4127b8dcc.zip gdb-fc1a4b4705305014e091a8922aa6cba4127b8dcc.tar.gz gdb-fc1a4b4705305014e091a8922aa6cba4127b8dcc.tar.bz2 |
2005-05-09 Andrew Cagney <cagney@gnu.org>
Use gdb_byte in preference to bfd_byte.
* gdbarch.sh: Update.
* gdbarch.h, gdbarch.c: Re-generate.
* ada-lang.c, ada-lang.h, ada-valprint.c, arch-utils.c: Update.
* c-lang.c, c-lang.h, c-valprint.c, cp-valprint.c: Update.
* f-lang.c, f-lang.h, f-valprint.c, gdbcore.h, jv-lang.h: Update.
* jv-valprint.c, language.c, language.h, m2-lang.c: Update.
* m2-lang.h, m2-valprint.c, objc-lang.c, p-lang.c: Update.
* p-lang.h, p-valprint.c, regcache.c, scm-lang.c: Update.
* scm-lang.h, scm-valprint.c, target.c, target.h: Update.
* tramp-frame.c, valarith.c, valops.c, valprint.c: Update.
* valprint.h, value.c, value.h: Update.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/target.c b/gdb/target.c index 799ca09..fa9f1fa 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -114,9 +114,9 @@ static int deprecated_debug_xfer_memory (CORE_ADDR, char *, int, int, static void debug_to_files_info (struct target_ops *); -static int debug_to_insert_breakpoint (CORE_ADDR, bfd_byte *); +static int debug_to_insert_breakpoint (CORE_ADDR, gdb_byte *); -static int debug_to_remove_breakpoint (CORE_ADDR, bfd_byte *); +static int debug_to_remove_breakpoint (CORE_ADDR, gdb_byte *); static int debug_to_can_use_hw_breakpoint (int, int, int); @@ -966,9 +966,9 @@ xfer_using_stratum (enum target_object object, const char *annex, return 0; offset += xfered; if (readbuf != NULL) - readbuf = (bfd_byte *) readbuf + xfered; + readbuf = (gdb_byte *) readbuf + xfered; if (writebuf != NULL) - writebuf = (bfd_byte *) writebuf + xfered; + writebuf = (gdb_byte *) writebuf + xfered; target = target_stack; } else if (xfered < 0) @@ -1001,7 +1001,7 @@ xfer_using_stratum (enum target_object object, const char *annex, deal with partial reads should call target_read_memory_partial. */ int -target_read_memory (CORE_ADDR memaddr, bfd_byte *myaddr, int len) +target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len) { if (target_xfer_partial_p ()) return xfer_using_stratum (TARGET_OBJECT_MEMORY, NULL, @@ -1011,9 +1011,9 @@ target_read_memory (CORE_ADDR memaddr, bfd_byte *myaddr, int len) } int -target_write_memory (CORE_ADDR memaddr, const bfd_byte *myaddr, int len) +target_write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, int len) { - bfd_byte *bytes = alloca (len); + gdb_byte *bytes = alloca (len); memcpy (bytes, myaddr, len); if (target_xfer_partial_p ()) return xfer_using_stratum (TARGET_OBJECT_MEMORY, NULL, @@ -1378,7 +1378,7 @@ target_read (struct target_ops *ops, while (xfered < len) { LONGEST xfer = target_read_partial (ops, object, annex, - (bfd_byte *) buf + xfered, + (gdb_byte *) buf + xfered, offset + xfered, len - xfered); /* Call an observer, notifying them of the xfer progress? */ if (xfer <= 0) @@ -1400,7 +1400,7 @@ target_write (struct target_ops *ops, while (xfered < len) { LONGEST xfer = target_write_partial (ops, object, annex, - (bfd_byte *) buf + xfered, + (gdb_byte *) buf + xfered, offset + xfered, len - xfered); /* Call an observer, notifying them of the xfer progress? */ if (xfer <= 0) @@ -2055,7 +2055,7 @@ debug_to_files_info (struct target_ops *target) } static int -debug_to_insert_breakpoint (CORE_ADDR addr, bfd_byte *save) +debug_to_insert_breakpoint (CORE_ADDR addr, gdb_byte *save) { int retval; @@ -2069,7 +2069,7 @@ debug_to_insert_breakpoint (CORE_ADDR addr, bfd_byte *save) } static int -debug_to_remove_breakpoint (CORE_ADDR addr, bfd_byte *save) +debug_to_remove_breakpoint (CORE_ADDR addr, gdb_byte *save) { int retval; |