Take a look at CMakeLists.txt:L371
<https://github.com/LMMS/lmms/blob/master/CMakeLists.txt#L371> and L372.
That's where -O2 is added. No idea why, probably best to remove -O2 and -g
from both lines.
2015-01-03 5:31 GMT+01:00 Amadeus Folego <amadeusfol...@gmail.com>:
> So, I am trying to track the cause of the bug that DanWin describes on
> his PR[0].
>
> Tres showed me a page on the wiki on how to compile LMMS with debugging
> symbols [1], but it still compiles with the O2 setting.
>
> When I try to print some value with GDB it prints "optimized out"
> probably because of this.
>
> I tried to figure out how to make the compilation instructions the most
> "debug friendly" as possible but I fear my knowledge of C++ tooling is
> not sufficient for this.
>
> Could someone help me?
>
> 0: https://github.com/LMMS/lmms/pull/1545
> 1:
>
> https://github.com/LMMS/lmms/wiki/Compiling-lmms-%28Apple%29#debugging-lmms-osx
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> LMMS-devel mailing list
> LMMS-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lmms-devel
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
LMMS-devel mailing list
LMMS-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lmms-devel