[uClinux-dev] debugging c++ programs

From: Kwanghoon Choi (khchoi@compiler.kaist.ac.kr)
Date: Mon Feb 05 2001 - 10:33:29 EST


Hello,

I am currently porting a c++ application. I cannot use
any debugger like gdb or DDD. Only what I can do is
to insert some print statements, to compile the
application, and to see what happens. In this environment,
it is more difficult to debug c++ programs than to
debug c programs because it is not easy to follow control
flow in c++ programs. The application program has a class
hierarchy of height 10 or more.

How did you debug your c++ programs ? Is there any tip to 
debug c++ programs in a waste land as mine, or is there
any translation tool to convert a c++ program into an 
equivarent c program.  

Also, I enclose a simple c++ program that does not work well
at least in my environment. I saw the libc-start()
function (in glibc) called the main function by the 
statement like *main(...), but the main() function of the 
c++ program was not called. 

I am using these:
   * arm-uclinux-gcc 2.95.2, 
   * glibc-2.1.3 for uclinux, 
   * uclinux for ARM7TDMI

Thank you for reading my mail

Kwanghoon Choi



This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/

This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:29 EDT