summaryrefslogtreecommitdiff
path: root/gdb/proc-api.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2000-05-05 18:29:33 +0000
committerMichael Snyder <msnyder@specifix.com>2000-05-05 18:29:33 +0000
commitd42d46b7edddeb277bf31693c00e6f9d129c2e3c (patch)
tree9e3e888fd5e5877255137fc2f1b24e41ba2a682c /gdb/proc-api.c
parenta06bf95afe2b8ac3866f9e00c80d3f2de7c003ff (diff)
downloadgdb-d42d46b7edddeb277bf31693c00e6f9d129c2e3c.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/proc-api.c b/gdb/proc-api.c
index cbd1a684223..7ee9bf3c189 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)
{