On Wed, Mar 05, 2008 at 10:51:32AM +0100, Trond Norbye wrote:
> Hi
> 
> Is there a valid reason for why dtrace -h removes the const qualifier?
> 
> provider foo {
>     probe bar(const void*);
> };
> 
> The signature in the generated header-file generated by dtrace -hs  
> foo.d looks like:
> 
> extern void __dtrace_foo___bar(void *);
> 
> Why is the const qualifier removed? Is this a bug or a "feature"?

This is a bug. You filed it in 2006:

  6460581 dtrace -h drops const qualifier in the generated function prototypes

It's kind of a pain to fix, but I'll try to bump it up in the queue. It should
just be a matter of tinkering with dt_decl_type(), but dealing with all the
different ways you can apply const (e.g. const char const *) will be tricky.

Adam

-- 
Adam Leventhal, Fishworks                        http://blogs.sun.com/ahl
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to