summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-12-21 12:42:11 -0500
committerDave Brolley <brolley@redhat.com>2009-12-21 12:42:11 -0500
commit25a0404570724499bcdf1ebfd9f03084c2e00137 (patch)
treef9824f847b407790ab10116c2ebcc7e664d53253 /loc2c.c
parent08098abb6b206dc3aea984f18b5054d34e015185 (diff)
parentc6fcc4c1ca5f222cf90bf3968e34a10f09b30be4 (diff)
downloadsystemtap-steved-25a0404570724499bcdf1ebfd9f03084c2e00137.tar.gz
systemtap-steved-25a0404570724499bcdf1ebfd9f03084c2e00137.tar.xz
systemtap-steved-25a0404570724499bcdf1ebfd9f03084c2e00137.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'loc2c.c')
-rw-r--r--loc2c.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/loc2c.c b/loc2c.c
index d3ec55fa..a7473784 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -30,6 +30,13 @@
#define N_(x) x
+/* NB: PR10601 may make one suspect that intptr_t and uintptr_t aren't
+ right, for example on a 64-bit kernel targeting a 32-bit userspace
+ process. At least these types are always at least as wide as
+ userspace (since 64-bit userspace doesn't run on a 32-bit kernel).
+ So as long as deref() and {fetch,store}_register() widen/narrow
+ their underlying values to these, there should be no problem. */
+
#define STACK_TYPE "intptr_t" /* Must be the signed type. */
#define UTYPE "uintptr_t" /* Must be the unsigned type. */
#define SFORMAT "%" PRId64 "L"