summaryrefslogtreecommitdiff
path: root/gdb/proc-service.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-24 18:36:25 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2015-10-24 18:36:25 -0400
commit49e66b4debebff088958077201eabab36df168f0 (patch)
treefe7b22a6e63982336736cceafce117ca8f676ed9 /gdb/proc-service.c
parentcfcb22a541ab8f783bf667cf7afbbfd9cd243cce (diff)
downloadbinutils-gdb-49e66b4debebff088958077201eabab36df168f0.tar.gz
proc-service.c: Add (gdb_byte *) cast
A cast here is necessary, just as it's necessary in ps_pdwrite just below. The type of buf can't be changed, since it's fixed in the ps_pd* API. gdb/ChangeLog: * proc-service.c (ps_pdread): Add cast.
Diffstat (limited to 'gdb/proc-service.c')
-rw-r--r--gdb/proc-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/proc-service.c b/gdb/proc-service.c
index 484054a8127..d05aa85278d 100644
--- a/gdb/proc-service.c
+++ b/gdb/proc-service.c
@@ -140,7 +140,7 @@ ps_err_e
ps_pdread (gdb_ps_prochandle_t ph, psaddr_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. */