Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Accessing widget instance name strings from debugger
Ref. No. QNX.000009912
Category(ies) Development
Issue We have set the "Include Names" option in the Application Startup Information and have used the ApInstanceName function successfully in our application.
We want to be able to find this widget instance name string using the debugger from a widget pointer, so we could verify which widget we are looking at. We have not found it anywhere within the structure or in any pointers from the structure.
Where are these name strings stored?
Can we access them from a Global Data Structure?


Solution The names are stored in the Pt_ARG_DATA resource (wgt->data). This is a resource reserved for PhAB, but you can definitely look at it in the debugger.

You want to set your watchpoint to
x09(ApWidgetData_t *)widget->data .