← Back to team overview

yade-users team mailing list archive

Re: [Question #276590]: how to recompile with "-g" option to use debug tool, gdb

 

Question #276590 on Yade changed:
https://answers.launchpad.net/yade/+question/276590

    Status: Open => Answered

Anton Gladky proposed the following answer:
Hi,

"-g" flag will be added automatically, if you compile Yade
in debug-mode [1]. Our Makefile is generating dynamically
by cmake and is dependent on parameters, which you input
during configuration step.

[1] https://github.com/yade/trunk/blob/master/CMakeLists.txt#L79

Best regards


Anton

2015-12-03 5:02 GMT+01:00 Masayuki
<question276590@xxxxxxxxxxxxxxxxxxxxx>:

> New question #276590 on Yade:
> https://answers.launchpad.net/yade/+question/276590
>
> Hello,
>
> I want to read the source code of YADE by using debug tool, gdb
> which allows me to trace the source code step by step.
> To use it, I need to add "-g" option when compiling.
> However I cannot find compile command such as "gcc" in Makefile
> Please tell me where the compile option can be set.
>
> Also, I need to add "gdb" to execution command for reading the code step
> by step.
> Please tell me where is the executable file made by c++.
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.