axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Whitlock (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Created: (AXISCPP-641) Trace output parameters on methods
Date Thu, 12 May 2005 11:05:05 GMT
Trace output parameters on methods
----------------------------------

         Key: AXISCPP-641
         URL: http://issues.apache.org/jira/browse/AXISCPP-641
     Project: Axis-C++
        Type: Bug
  Components: Trace Utility  
    Reporter: Mark Whitlock
 Assigned to: Mark Whitlock 


Currently the trace tool traces all parameters to a method on entry to that method, and the
return value on exit. However parameters passed by address or reference may be updated by
the method and so are really output or inout parameters. These inout/output parameters should
be traced on exit from the method. This is slightly harder than it looks since the entry trace
must cache pointers and references to cope with code like...

void func(int *p1) {
  *p1 = 5;
  p1 = new int;
  *p1 = 6;
}

The caller of this method gets back 5 not 6.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message