Skip to main content

Software  >  Rational  >  

Purify does not detect UMR

 Technote (FAQ)
 
Question
Why is IBM Rational Purify unable to detect UMR for a variable if it is un-initialized?
 
Answer
This is a limitation of the product.
With only one variable in a class, the Microsoft C++ compiler is using one of the processor registers for handling its value. Note that [this] value is also passed in the ECX register.

Example:

mov EAX, ECX

mov EAX, [EAX]

push EAX

...


This pattern may change depending on the class implementation.

There is no obvious data access when everything is in the processor registers. We can not always assume that ECX register contains this pointer, because it is C++ code specific. In theory Purify could recognize this pointer access if it were to take advantage of the debugger information, however to do this is a complex task.

When you add a second variable to the class, the compiler does not keep it in a register, so Purify has a chance to see it.


Do you need more help?

For additional assistance, contact IBM Rational Client Support:
Submit a Service Request (SR)

 
 
Cross Reference information
Segment Product Component Platform Version Edition
Software DevelopmentRational PurifyInstrumentationWindows7.0
 
 

Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.
Rate this page
Please take a moment to complete this form to help us better serve you.
This material provides me with the information I need.




This material is clear and easy to understand.




Did the information help you to achieve your goal?
What updates, improvements, or related information would you like to see in this document?
Your response will be used to improve our document content. Requests for assistance, if applicable, should be submitted through your normal support channel as we cannot respond from this site.
Input the verification number to submit feedback:
Document information
 Product categories:
 Software
 Software Development
 Software Quality Management
 Rational Purify
 Instrumentation
 Operating system(s):
  Windows
 Software version:
  7.0
 Reference #:
  1313386
 IBM Group:
 Software Group
 Modified date:
 2009-08-21

Translate My Page
 
 

Rate this page

Help us improve this page. Your response will be used to improve our document content. Requests for assistance, if applicable, should be submitted through your normal support channel as we cannot respond from this site.