PDA

View Full Version : Dynamically loading C++ View .so in totalview?



shayping
12-06-2012, 05:47 PM
I've written a could of C++ View type transforms for a project I'm working on. When I compile the file in with my project and debug with TotalView, I see that the type transformations happen and I get a nice view of my data.

However, as a matter or principle, my company doesn't wish for the C++ view code to be linked in with the our main code base. Instead I would like to compile a side tv_display.so file that I can load into totalview before starting my debug.

I've tried doing this, and I use the lddopen -global tv_display.so command in the cli to load the c++ view file. However when I view a data, it still display the data in raw mode....

Is what I'm trying to do possible?
How can I debug why totalview is not "seeing" the display functions? I've done a dump of the .so and seen that the functions are listed so they were not optimized away in compilation....

Any tips?

Thanks