* Debug flag for libraries.
@ 2003-07-01 5:53 Ramanan, Venkat (MED)
2003-07-01 11:02 ` Glynn Clements
2003-07-01 15:00 ` Darío Mariani
0 siblings, 2 replies; 5+ messages in thread
From: Ramanan, Venkat (MED) @ 2003-07-01 5:53 UTC (permalink / raw)
To: linux-c-programming
Hi all,
I need to compile a program with the debug flag "-g". The program uses some (static) libraries which have already been compiled without the "-g" flag. So, if I need all the debugging information ( line numbers etc. ) even from the libraries, do I need to recompile the libraries? Or is the "-g" flag just for the program, enough to bring all info?
I use "gcc" and "gdb".
What is the "correct" thing to do? Any advice would be greatly appreciated.
Thanks in advance,
Venkat.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debug flag for libraries.
2003-07-01 5:53 Debug flag for libraries Ramanan, Venkat (MED)
@ 2003-07-01 11:02 ` Glynn Clements
2003-07-02 18:48 ` Elias Athanasopoulos
2003-07-01 15:00 ` Darío Mariani
1 sibling, 1 reply; 5+ messages in thread
From: Glynn Clements @ 2003-07-01 11:02 UTC (permalink / raw)
To: Ramanan, Venkat (MED); +Cc: linux-c-programming
Ramanan, Venkat (MED) wrote:
> I need to compile a program with the debug flag "-g". The program uses
> some (static) libraries which have already been compiled without the
> "-g" flag. So, if I need all the debugging information ( line numbers
> etc. ) even from the libraries, do I need to recompile the libraries?
Yes.
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debug flag for libraries.
2003-07-01 5:53 Debug flag for libraries Ramanan, Venkat (MED)
2003-07-01 11:02 ` Glynn Clements
@ 2003-07-01 15:00 ` Darío Mariani
1 sibling, 0 replies; 5+ messages in thread
From: Darío Mariani @ 2003-07-01 15:00 UTC (permalink / raw)
To: Ramanan, Venkat (MED); +Cc: linux-c-programming
In general you will have no problems, I did not work with static
libraries, but with shared ones never had a problem. I do not think that
recompiling the libraries with debug info provides much help, unless the
libraries are buggy.
Ramanan, Venkat (MED) wrote:
> Hi all,
>
> I need to compile a program with the debug flag "-g". The program uses some (static) libraries which have already been compiled without the "-g" flag. So, if I need all the debugging information ( line numbers etc. ) even from the libraries, do I need to recompile the libraries? Or is the "-g" flag just for the program, enough to bring all info?
>
> I use "gcc" and "gdb".
>
> What is the "correct" thing to do? Any advice would be greatly appreciated.
>
> Thanks in advance,
> Venkat.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debug flag for libraries.
2003-07-01 11:02 ` Glynn Clements
@ 2003-07-02 18:48 ` Elias Athanasopoulos
0 siblings, 0 replies; 5+ messages in thread
From: Elias Athanasopoulos @ 2003-07-02 18:48 UTC (permalink / raw)
To: Glynn Clements; +Cc: Ramanan, Venkat (MED), linux-c-programming
On Tue, Jul 01, 2003 at 12:02:30PM +0100, Glynn Clements wrote:
> > I need to compile a program with the debug flag "-g". The program uses
> > some (static) libraries which have already been compiled without the
> > "-g" flag. So, if I need all the debugging information ( line numbers
> > etc. ) even from the libraries, do I need to recompile the libraries?
>
> Yes.
And pick the same debugging information format (stabs or dwarf) for both,
app and libs.
--
University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Debug flag for libraries.
@ 2003-07-03 7:24 Ramanan, Venkat (MED)
0 siblings, 0 replies; 5+ messages in thread
From: Ramanan, Venkat (MED) @ 2003-07-03 7:24 UTC (permalink / raw)
To: linux-c-programming
Thanks for the responses. I thought I could get away with not compiling
the libraries.
Thanks anyway,
Venkat.
-----Original Message-----
From: Glynn Clements [mailto:glynn.clements@virgin.net]
Sent: Tuesday, July 01, 2003 4:33 PM
To: Ramanan, Venkat (MED)
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Debug flag for libraries.
Ramanan, Venkat (MED) wrote:
> I need to compile a program with the debug flag "-g". The program uses
> some (static) libraries which have already been compiled without the
> "-g" flag. So, if I need all the debugging information ( line numbers
> etc. ) even from the libraries, do I need to recompile the libraries?
Yes.
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-07-03 7:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-01 5:53 Debug flag for libraries Ramanan, Venkat (MED)
2003-07-01 11:02 ` Glynn Clements
2003-07-02 18:48 ` Elias Athanasopoulos
2003-07-01 15:00 ` Darío Mariani
-- strict thread matches above, loose matches on Subject: below --
2003-07-03 7:24 Ramanan, Venkat (MED)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).