summaryrefslogtreecommitdiff
path: root/sys/gdbscripts
diff options
context:
space:
mode:
authordeberg <deberg@NetBSD.org>2001-01-11 05:31:02 +0000
committerdeberg <deberg@NetBSD.org>2001-01-11 05:31:02 +0000
commit85c0b91ee414efdd19f1fab2aa7dc065022d68ff (patch)
treec703fee8ef175e62b5d04352eae7f905ca5e594a /sys/gdbscripts
parent06680ddb2d52096d93147e8bf218c23b31d77004 (diff)
fix pointer arithmetic
Diffstat (limited to 'sys/gdbscripts')
-rw-r--r--sys/gdbscripts/msgbuf8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/gdbscripts/msgbuf b/sys/gdbscripts/msgbuf
index db2f797a2c0..3433b97908c 100644
--- a/sys/gdbscripts/msgbuf
+++ b/sys/gdbscripts/msgbuf
@@ -1,4 +1,4 @@
-# $NetBSD: msgbuf,v 1.1 2000/06/08 14:45:24 jhawk Exp $
+# $NetBSD: msgbuf,v 1.2 2001/01/11 05:31:02 deberg Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -36,9 +36,9 @@
#
define msgbuf
- set $bufx=*(long*)(msgbufp+1*sizeof(long))
- set $bufr=*(long*)(msgbufp+2*sizeof(long))
- set $bufs=*(long*)(msgbufp+3*sizeof(long))
+ set $bufx=*(long*)((char *)msgbufp+1*sizeof(long))
+ set $bufr=*(long*)((char *)msgbufp+2*sizeof(long))
+ set $bufs=*(long*)((char *)msgbufp+3*sizeof(long))
printf "msgbufp %#x: bufx %d bufr %d bufs %d\n", msgbufp, $bufx, $bufr, $bufs