Csound Csound-dev Csound-tekno Search About

[Cs-dev] Build Csound with debug symbols (GNU)

Date2012-08-31 15:41
Fromobaudouin
Subject[Cs-dev] Build Csound with debug symbols (GNU)
Hello!

I want to build Csound (5.18) with debug symbols. So,

I tried the flag noDebug with Scons, with  noDebug=0 and noDebug=1
I tried to add manually the -g flag into SCONStruct for gcc and g++: the
flag appears at each line when compiling but...

...but gdb says each time  "Reading symbols from /usr/local/bin/csound...(no
debugging symbols found)...done"

An idea?

My settings:

scons usePortAudio=0 usePortMIDI=0 Word64=1 Lib64=1 useCoreAudio=0
withSunStudio=0 buildImageOpcodes=0 useOpenMP=1 useDouble=1

Fedora 17



-----

Olivier Baudouin, PhD 
http://olivierbaudouin.com 
MINT-OMF 
Paris-Sorbonne

--
View this message in context: http://csound.1045644.n5.nabble.com/Build-Csound-with-debug-symbols-GNU-tp5715338.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-08-31 17:16
FromSteven Yi
SubjectRe: [Cs-dev] Build Csound with debug symbols (GNU)
Hi Olivier,

It seems you are running gdb with the version of csound in
/usr/local/bin.  Is this the version you freshly compiled?  I just
wanted to check as it has happened to me before that I compiled with
debug but ran with my installed version instead of the one I just
compiled.  I tend to run gdb from commandline with "gdb ./csound
some.csd".

Thanks!
steven

On Fri, Aug 31, 2012 at 3:41 PM, obaudouin  wrote:
> Hello!
>
> I want to build Csound (5.18) with debug symbols. So,
>
> I tried the flag noDebug with Scons, with  noDebug=0 and noDebug=1
> I tried to add manually the -g flag into SCONStruct for gcc and g++: the
> flag appears at each line when compiling but...
>
> ...but gdb says each time  "Reading symbols from /usr/local/bin/csound...(no
> debugging symbols found)...done"
>
> An idea?
>
> My settings:
>
> scons usePortAudio=0 usePortMIDI=0 Word64=1 Lib64=1 useCoreAudio=0
> withSunStudio=0 buildImageOpcodes=0 useOpenMP=1 useDouble=1
>
> Fedora 17
>
>
>
> -----
>
> Olivier Baudouin, PhD
> http://olivierbaudouin.com
> MINT-OMF
> Paris-Sorbonne
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Build-Csound-with-debug-symbols-GNU-tp5715338.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-08-31 17:24
Fromobaudouin
SubjectRe: [Cs-dev] Build Csound with debug symbols (GNU)
Thank you Steven, that's OK when launching the csound command into its
building (and not installation) folder.



Olivier.



-----

Olivier Baudouin, PhD 
http://olivierbaudouin.com 
MINT-OMF 
Paris-Sorbonne

--
View this message in context: http://csound.1045644.n5.nabble.com/Build-Csound-with-debug-symbols-GNU-tp5715338p5715344.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net