From d278162afaa28852dc2e3d2c32e2ca8d27c119c3 Mon Sep 17 00:00:00 2001 From: tpnguyen Date: Tue, 18 Jul 2006 13:14:16 +0000 Subject: Modified probefunc() to print consistent name on ppc64 --- tapset/ChangeLog | 5 +++++ tapset/context.stp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'tapset') diff --git a/tapset/ChangeLog b/tapset/ChangeLog index ce0f8ebe..efe52985 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,8 @@ +2006-07-18 Thang Nguyen + + * context.stp: Modified probefunc() to print the function + name (without the dot) for statement probe on ppc64. + 2006-07-17 David Smith * context.stp: Removed returnval() function. Use $return diff --git a/tapset/context.stp b/tapset/context.stp index 2e5e9e74..16b176af 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -109,7 +109,8 @@ function probefunc:string () %{ /* pure */ } else if (CONTEXT->regs) { _stp_symbol_sprint_basic(THIS->__retvalue, MAXSTRINGLEN, REG_IP(CONTEXT->regs)); - + if (THIS->__retvalue[0] == '.') /* powerpc symbol has a dot*/ + strlcpy(THIS->__retvalue,THIS->__retvalue + 1,MAXSTRINGLEN); } else { THIS->__retvalue[0] = '\0'; } -- cgit