summaryrefslogtreecommitdiff
path: root/perldtrace.d
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2011-07-20 20:23:15 +1000
committerTony Cook <tony@develop-help.com>2011-08-09 19:03:20 +1000
commit12b81ca50a3ad3c06c786138add2f964cf24acb6 (patch)
tree8067e05f4af824241fd4781c7408f56d760bfe05 /perldtrace.d
parent2186be13a01ba687b2fe25f0d5c898031257c2b5 (diff)
downloadperl-12b81ca50a3ad3c06c786138add2f964cf24acb6.tar.gz
work around a bug in dtrace - it strips const from function parameters
With usedtrace this caused: - build failures under g++ (OS X) - const qualification warnings with gcc (OS X) The workaround simply adds const to char * parameters if not already present. The bug in dtrace was apparently reported to Sun in 2006: http://opensolaris.org/jive/thread.jspa?threadID=53810 Mozilla ran into the same problem: https://bugzilla.mozilla.org/show_bug.cgi?id=593483
Diffstat (limited to 'perldtrace.d')
-rw-r--r--perldtrace.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/perldtrace.d b/perldtrace.d
index f87a27adaf..95eb0664da 100644
--- a/perldtrace.d
+++ b/perldtrace.d
@@ -4,8 +4,8 @@
*/
provider perl {
- probe sub__entry(char *, char *, int, char *);
- probe sub__return(char *, char *, int, char *);
+ probe sub__entry(const char *, const char *, int, const char *);
+ probe sub__return(const char *, const char *, int, const char *);
probe phase__change(const char *, const char *);
};