diff options
author | Jim Wilson <wilson@tuliptree.org> | 1998-11-06 03:02:44 +0000 |
---|---|---|
committer | Jim Wilson <wilson@tuliptree.org> | 1998-11-06 03:02:44 +0000 |
commit | e5fddd378d17291683922da7ab53d57d35c1e4ad (patch) | |
tree | 383622c88937d7a5648acf36ae7156a7c6004bc4 /gdb/vx-share | |
parent | 47a214450370a0b132c9308ca0c4029d29a84dfa (diff) | |
download | gdb-e5fddd378d17291683922da7ab53d57d35c1e4ad.zip gdb-e5fddd378d17291683922da7ab53d57d35c1e4ad.tar.gz gdb-e5fddd378d17291683922da7ab53d57d35c1e4ad.tar.bz2 |
Patches to fix linux-x-i960-vxworks5.0 build failure.
* remote-vx.c (net_read_registers, net_write_registers, vx_xver_memory,
vx_resume, vx_attach, vx_detach, vx_kill): Change errno to errno_num.
* vx-share/xdr_ptrace.c (xdr_ptrace_return): Likewise.
* vx-share/xdr_ptrace.h (struct ptrace_return): Likewise.
Diffstat (limited to 'gdb/vx-share')
-rw-r--r-- | gdb/vx-share/xdr_ptrace.c | 2 | ||||
-rw-r--r-- | gdb/vx-share/xdr_ptrace.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gdb/vx-share/xdr_ptrace.c b/gdb/vx-share/xdr_ptrace.c index 6c9c8a2..fff4324 100644 --- a/gdb/vx-share/xdr_ptrace.c +++ b/gdb/vx-share/xdr_ptrace.c @@ -109,7 +109,7 @@ bool_t xdr_ptrace_return(xdrs, objp) { if (! xdr_int(xdrs, &objp->status)) return(FALSE); - if (! xdr_int(xdrs, &objp->errno)) + if (! xdr_int(xdrs, &objp->errno_num)) return(FALSE); if (! xdr_ptrace_info(xdrs, &objp->info)) return(FALSE); diff --git a/gdb/vx-share/xdr_ptrace.h b/gdb/vx-share/xdr_ptrace.h index 9b8a290..9b4eb2b 100644 --- a/gdb/vx-share/xdr_ptrace.h +++ b/gdb/vx-share/xdr_ptrace.h @@ -57,9 +57,11 @@ typedef struct rptrace Rptrace; /* * structure returned by server on all remote ptrace calls */ +/* This used to have a field called errno, but that fails on hosts which + define errno to be a macro, so it was changed to errno_num. */ struct ptrace_return { int status; - int errno; + int errno_num; Ptrace_info info; }; typedef struct ptrace_return Ptrace_return; |