diff options
author | Fred Fish <fnf@specifix.com> | 1996-04-09 06:09:33 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-04-09 06:09:33 +0000 |
commit | 5579919f7d343f9118d42f1c443daf74996983e3 (patch) | |
tree | 85961b21fecd451170a5d90a3476fa15ccd43465 /gdb/remote-pa.c | |
parent | 50d45d1b2f621f026868e9802e181bebe28e10b7 (diff) | |
download | gdb-5579919f7d343f9118d42f1c443daf74996983e3.zip gdb-5579919f7d343f9118d42f1c443daf74996983e3.tar.gz gdb-5579919f7d343f9118d42f1c443daf74996983e3.tar.bz2 |
* Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
dependencies.
* scm-lang.c (gdb_string.h): Include.
* objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
call to correct type (char *).
* cp-valprint.c (cp_print_static_field): Ditto.
* somsolib.c (som_solib_create_inferior_hook): Add a declaration
for external find_unwind_entry function (from hppa-tdep.c).
* remote-pa.c (remote_write_bytes, remote_read_bytes): Change
type of second arg to "char *" to be type compatible with
dcache.
(remote_wait): Cast second arg to strtol to correct type.
* hppa-tdep.c (compare_unwind_entries): Change argument types to
"const void *" to be type compatible with qsort, and then
assign to local args prior to use.
Diffstat (limited to 'gdb/remote-pa.c')
-rw-r--r-- | gdb/remote-pa.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gdb/remote-pa.c b/gdb/remote-pa.c index 1ac5d9c..1121e15 100644 --- a/gdb/remote-pa.c +++ b/gdb/remote-pa.c @@ -160,10 +160,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Prototypes for local functions */ static int -remote_write_bytes PARAMS ((CORE_ADDR memaddr, unsigned char *myaddr, int len)); +remote_write_bytes PARAMS ((CORE_ADDR memaddr, char *myaddr, int len)); static int -remote_read_bytes PARAMS ((CORE_ADDR memaddr, unsigned char *myaddr, int len)); +remote_read_bytes PARAMS ((CORE_ADDR memaddr, char *myaddr, int len)); static void remote_files_info PARAMS ((struct target_ops *ignore)); @@ -650,7 +650,7 @@ remote_wait (pid, status) { unsigned char *p1; - regno = strtol (p, &p1, 16); /* Read the register number */ + regno = strtol (p, (char **) &p1, 16); /* Read the register number */ if (p1 == p) warning ("Remote sent badly formed register number: %s\nPacket: '%s'\n", @@ -880,7 +880,7 @@ remote_store_word (addr, word) static int remote_write_bytes (memaddr, myaddr, len) CORE_ADDR memaddr; - unsigned char *myaddr; + char *myaddr; int len; { char buf[PBUFSIZ]; @@ -928,7 +928,7 @@ remote_write_bytes (memaddr, myaddr, len) static int remote_read_bytes (memaddr, myaddr, len) CORE_ADDR memaddr; - unsigned char *myaddr; + char *myaddr; int len; { char buf[PBUFSIZ]; @@ -995,11 +995,9 @@ remote_xfer_memory(memaddr, myaddr, len, should_write, target) xfersize = len; if (should_write) - bytes_xferred = remote_write_bytes (memaddr, - (unsigned char *)myaddr, xfersize); + bytes_xferred = remote_write_bytes (memaddr, myaddr, xfersize); else - bytes_xferred = remote_read_bytes (memaddr, - (unsigned char *)myaddr, xfersize); + bytes_xferred = remote_read_bytes (memaddr, myaddr, xfersize); /* If we get an error, we are done xferring. */ if (bytes_xferred == 0) |