diff options
author | Michael Snyder <msnyder@vmware.com> | 2000-05-05 18:29:33 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2000-05-05 18:29:33 +0000 |
commit | 6c1a54b22b5b3bd140126b93eba4436781a6983d (patch) | |
tree | 69475fd0603850927ca519c8fe18a7dcea34b6ac /gdb/proc-api.c | |
parent | f5b8946ca69d5e64d01e37ecad9d93b61e0d13b7 (diff) | |
download | gdb-6c1a54b22b5b3bd140126b93eba4436781a6983d.zip gdb-6c1a54b22b5b3bd140126b93eba4436781a6983d.tar.gz gdb-6c1a54b22b5b3bd140126b93eba4436781a6983d.tar.bz2 |
2000-05-05 Michael Snyder <msnyder@seadog.cygnus.com>
* procfs.c (many functions): change int cmd; to long cmd;
Solaris /proc API calls this parameter a long, and requires it
for 64-bit hosts (where sizeof(long) != sizeof(int)). UnixWare
calls it an int, but on existing UnixWare hosts, int and long
are the same size. So long it must be. If a future UnixWare
version has problems with this, we'll have to use autoconf.
* proc-api.c (write_with_trace): use long instead of int.
Diffstat (limited to 'gdb/proc-api.c')
-rw-r--r-- | gdb/proc-api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/proc-api.c b/gdb/proc-api.c index cbd1a68..7ee9bf3 100644 --- a/gdb/proc-api.c +++ b/gdb/proc-api.c @@ -440,14 +440,14 @@ static off_t lseek_offset; int write_with_trace (fd, arg, len, file, line) int fd; - int *arg; + long *arg; size_t len; char *file; int line; { int i; int ret; - int opcode = arg[0]; + long opcode = arg[0]; if (procfs_trace) { |