summaryrefslogtreecommitdiffstats
path: root/tapset/context.stp
diff options
context:
space:
mode:
authorjistone <jistone>2006-05-09 21:56:05 +0000
committerjistone <jistone>2006-05-09 21:56:05 +0000
commit44e69a2c6f7f2b305b426ad33f8c08a6bd0a60ab (patch)
tree94cf1f0a4d38298f2248e4566a4fae2bfb72be5b /tapset/context.stp
parente8ceb45c053fbcc326b82c2f360c1175c44d7d20 (diff)
downloadsystemtap-steved-44e69a2c6f7f2b305b426ad33f8c08a6bd0a60ab.tar.gz
systemtap-steved-44e69a2c6f7f2b305b426ad33f8c08a6bd0a60ab.tar.xz
systemtap-steved-44e69a2c6f7f2b305b426ad33f8c08a6bd0a60ab.zip
2006-05-09 Josh Stone <joshua.i.stone@intel.com>
* context.stp (probefunc): remove use of labels
Diffstat (limited to 'tapset/context.stp')
-rw-r--r--tapset/context.stp11
1 files changed, 4 insertions, 7 deletions
diff --git a/tapset/context.stp b/tapset/context.stp
index a97d6f13..00629900 100644
--- a/tapset/context.stp
+++ b/tapset/context.stp
@@ -104,9 +104,7 @@ function probefunc:string () %{ /* pure */
while (*ptr != '@' && --len > 0 && *ptr)
*dst++ = *ptr++;
*dst = 0;
- goto done;
- }
- if (CONTEXT->regs) {
+ } else if (CONTEXT->regs) {
str = _stp_string_init (0);
_stp_symbol_sprint(str, REG_IP(CONTEXT->regs));
start = strstr(_stp_string_ptr(str), " : ");
@@ -120,10 +118,9 @@ function probefunc:string () %{ /* pure */
else {
strlcpy(THIS->__retvalue, _stp_string_ptr(str),MAXSTRINGLEN);
}
- goto done;
- }
- THIS->__retvalue[0] = '\0';
-done: ;
+ } else {
+ THIS->__retvalue[0] = '\0';
+ }
%}
function is_return:long () %{ /* pure */