Frustration with template debugging
Using:
Sun Studio IDE 7.4 2005/10/13
Sun Dbx Debugger 7.5 Patch 121023-01 2006/02/09
CC: Sun C++ 5.8 Patch 121017-02 2006/04/19
Problem:
Using Studio 11 debugger GUI, file in which template is defined is not opened when I step into a function belonging to the template.
For example, when I compile the test files below with "CC -g -o testMe testMe.cc", then attempt to step into the t.set(5), testMe.hh is not opened.
However, if I manually open the file, set a breakpoint in it, have the breakpoint triggered, then remove the breakpoint, I can step into the file from then on, even across sunstudio/dbx restarts.
Does anyone else have this problem?
[u]Test files:[/u]
[b]testMe.hh:[/b]
[code]
template <class Type>
class T
{
public:
void set(const Type & copyMe) { myT = copyMe; }
Type myT;
};
[/code]
[b]testMe.cc:[/b]
[code]
#include "testMe.hh"
int main(void)
{
T<int> t;
t.set(5);
return 0;
}
[/code]

