This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cygnus gdb and template


Hi there:

I tried to debug a c++ program which uses templates with cygnus.  But I could
not see the source of the templates when I steped in to the template codes.  I
thought I should include the path for the source files.  But it didn't work
either.  I even tried to put a template in a c++ source file directly.  Though I 
could see the source lines of the c++ codes, I still couldn't see the source
lines of the template.  The gdb simply printed something like LMxxx().  Another
step command will quit the template immedialtely.

I tried the same program on Linux without any problems using the same compiler
options.  Did I miss something?

Thanks.

-- 

Xiaomao

=================================================================
Xiaomao (Mark) Xiao                  E-Mail: xiao@cmold.com
C-MOLD                                  TEL: (607) 257-4949 x 699
31 Dutch Mill Road                      FAX: (607) 257-6355
Ithaca, NY 14850                        URL: http://www.cmold.com
=================================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]