help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is the version of a compiler crucial for the performance of gdb


From: Paul Pluzhnikov
Subject: Re: Is the version of a compiler crucial for the performance of gdb
Date: Tue, 21 Feb 2006 08:18:19 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

"Linda" <xiaohui.ji@gmail.com> writes:

> So I cannot debug normally. But if I change CCC to g++, gdb can work
> normally. So is the version of the compiler is crucial for gdb? 

No, it's not. However you should read "man CC", and pay extra
attention to the '-xs' flag.

Also note that 'gdb' doesn't understand SunCC's name mangling too
well, so if you are going to use SunCC for C++ code, you'll be
better off using Sun's dbx as well.

> And how can I make gdb work normally? 

Add '-xs' to your compile line.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]