When I compile C++ code with the TI compiler, and then need to reference template class member function names in an instantiation of the class, what symbol to I feed rhino to get the address of such a function, so that I can set a breakpoint on it, etc.?
Example: I have an instance of a template class, SerialRX, that inherits from the class Queue. I want to get the address of the getbyte member function of that instance.
Here is the way it appears in the source code:
template < typename IndexType, IndexType Size, typename EntryType >
class Queue { // the class we inherit from
/* blah blah */
}
template <uint16_t Size>
class SerialRX : public Queue <uint16_t, Size, uint8_t> { // the class we instantiate
bool getbyte(uint8_t &return_byte) { /* blah blah */ } // the member function we are interested in
}
SerialRX <128> ModemRX; // here is where we actually instantiate it.
Here is the way it appears in an objdump:
SerialRX<128u>::getbyte(unsigned char&)
There is no "ModemRX::getbyte" in the object files.
When I use:
debugSession.symbol.getAddress("SerialRX<128u>::getbyte(unsigned char&)");
it barfs out error messages. What is the right way to get the address of a member function of a n instance of a template class?