FAQs Archive for ARC Debugger


The embedded tools company

Search FAQs



PDF document ( 98KB / 27-Mar-2022 )


How can I see member variables in C++ methods without using the 'this' pointer?
Ref: 0367

Adding a member variable to the watch window without an object name should show a usefull value, when you are debugging a method/function of the desired object (like local variables).
However at least MetaWare compiler 8.5 and earlier do not mark its code as C++ code. As a result TRACE32 does not search for the 'this' pointer.

Solution:
Update TRACE32 to build 27455 or higher and load your ELF with /CPP option
or update your MetaWare compiler to a version witch addresses this issue.

Workaround:
Always explicitly use 'this->' in the watch window.




Copyright © 2023 Lauterbach GmbH, Altlaufstr.40, 85635 Höhenkirchen-Siegertsbrunn, Germany   Impressum     Privacy Policy
The information presented is intended to give overview information only.
Changes and technical enhancements or modifications can be made without notice. Report Errors
Last generated/modified: 02-Jan-2023