summaryrefslogtreecommitdiffstats
path: root/tapset/context.stp
diff options
context:
space:
mode:
authorJim Keniston <jkenisto@us.ibm.com>2008-05-29 17:13:38 -0700
committerJim Keniston <jkenisto@us.ibm.com>2008-05-29 17:13:38 -0700
commitaf26b140348ba9989c63f36bb553862a0f75ffeb (patch)
treef0285387a59482c498a80377a7537216c45db2f4 /tapset/context.stp
parent8437928b8d07b6b77fc5f886b6900eb9cfd4a0d0 (diff)
downloadsystemtap-steved-af26b140348ba9989c63f36bb553862a0f75ffeb.tar.gz
systemtap-steved-af26b140348ba9989c63f36bb553862a0f75ffeb.tar.xz
systemtap-steved-af26b140348ba9989c63f36bb553862a0f75ffeb.zip
Fix PR 6582: verify CONTEXT->regs in [u_]register()
Diffstat (limited to 'tapset/context.stp')
-rw-r--r--tapset/context.stp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tapset/context.stp b/tapset/context.stp
index dc560316..45e3be30 100644
--- a/tapset/context.stp
+++ b/tapset/context.stp
@@ -136,6 +136,10 @@ function probemod:string () %{ /* pure */
}
%}
+function registers_valid:long () %{ /* pure */
+ THIS->__retvalue = (CONTEXT->regs != NULL);
+%}
+
function is_return:long () %{ /* pure */
if (CONTEXT->pi)
THIS->__retvalue = 1;