aboutsummaryrefslogtreecommitdiff
path: root/gdb/proc-service.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-05-26 20:49:03 +0000
committerAndrew Cagney <cagney@redhat.com>2005-05-26 20:49:03 +0000
commit47b667dea5dd1f1c4fc7a1304163c254ffa16161 (patch)
tree9fcda8613cafb8fe628d6f552036be024d6422c5 /gdb/proc-service.c
parentffed450932b97750232cc99eb2f3a4cba06afc9c (diff)
downloadgdb-47b667dea5dd1f1c4fc7a1304163c254ffa16161.zip
gdb-47b667dea5dd1f1c4fc7a1304163c254ffa16161.tar.gz
gdb-47b667dea5dd1f1c4fc7a1304163c254ffa16161.tar.bz2
2005-05-26 Andrew Cagney <cagney@gnu.org>
* command.h (add_setshow_integer_cmd): Make VAR an integer. * cli/cli-decode.c (add_setshow_integer_cmd): Update to match. * valops.c (value_string): Add a cast. * eval.c (evaluate_subexp_standard): Use gdb_byte for byte buffers. * breakpoint.c (re_enable_breakpoints_in_shlibs): Use gdb_byte for byte buffers. * target.h (struct target_ops): For to_insert_hw_breakpoint and to_remove_hw_breakpoint use gdb_byte for byte buffer parameters. * breakpoint.h (struct bp_location): Make shadow_contents a gdb_byte buffer. * cli/cli-setshow.c (do_setshow_command): Fix cast. * cli/cli-dump.c (restore_section_callback) (restore_binary_file): Use gdb_byte for byte buffers. * proc-service.c (ps_ptwrite, ps_ptread, ps_pdwrite): Fix casts. (ps_xfer_memory): Use gdb_byte for byte buffers. * tracepoint.c (mem2hex): Use gdb_byte for byte buffers, and char for string buffers. * ser-tcp.c (net_open): Make len a socklen_t.
Diffstat (limited to 'gdb/proc-service.c')
-rw-r--r--gdb/proc-service.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/proc-service.c b/gdb/proc-service.c
index d7cd1aa..e0233fc 100644
--- a/gdb/proc-service.c
+++ b/gdb/proc-service.c
@@ -67,7 +67,7 @@ typedef size_t gdb_ps_size_t;
static ps_err_e
ps_xfer_memory (const struct ps_prochandle *ph, paddr_t addr,
- char *buf, size_t len, int write)
+ gdb_byte *buf, size_t len, int write)
{
struct cleanup *old_chain = save_inferior_ptid ();
int ret;
@@ -201,7 +201,7 @@ ps_err_e
ps_pdwrite (gdb_ps_prochandle_t ph, paddr_t addr,
gdb_ps_write_buf_t buf, gdb_ps_size_t size)
{
- return ps_xfer_memory (ph, addr, (char *) buf, size, 1);
+ return ps_xfer_memory (ph, addr, (gdb_byte *) buf, size, 1);
}
/* Read SIZE bytes from the target process PH at address ADDR and copy
@@ -211,7 +211,7 @@ ps_err_e
ps_ptread (gdb_ps_prochandle_t ph, paddr_t addr,
gdb_ps_read_buf_t buf, gdb_ps_size_t size)
{
- return ps_xfer_memory (ph, addr, buf, size, 0);
+ return ps_xfer_memory (ph, addr, (gdb_byte *) buf, size, 0);
}
/* Write SIZE bytes from BUF into the target process PH at address ADDR. */
@@ -220,7 +220,7 @@ ps_err_e
ps_ptwrite (gdb_ps_prochandle_t ph, paddr_t addr,
gdb_ps_write_buf_t buf, gdb_ps_size_t size)
{
- return ps_xfer_memory (ph, addr, (char *) buf, size, 1);
+ return ps_xfer_memory (ph, addr, (gdb_byte *) buf, size, 1);
}
/* Get the general registers of LWP LWPID within the target process PH