Operating System - HP-UX
1828170 Members
2518 Online
109975 Solutions
New Discussion

What's the problem of inline function debugging in WDB

 
HUIPAN
New Member

What's the problem of inline function debugging in WDB

Hi I have following example code, and I compile it with HP aC++ B3910B A.03.13 on HPUX11.0 with -g +d options, when I use gdb to debug the code. I can not "call test.prt()" in debugger while ok with "call test.prt1()". Could anybody help? Thanks a lot!!
example code:
#include "iostream.h"

class Test{
public:
void prt1()
{
cout <<"Test"< }
void prt()
{
cout <<"Test"< }
};
int
main(int argc, char ** argv)
{
int i = 0;
Test test;

test.prt1();
return i;
}