Compile C code with debugging info ?

BlitzMax Forums/BlitzMax Module Tweaks/Compile C code with debugging info ?

Koriolis(Posted 2010) [#1]
Hello.
I am trying to debug a module that is mainly made of C code.
I have run my test executable under gdb but as I expected BlitzMax compiles C code without debugging information.
What I need is a way to tell BlitzMax to compile C code with debugging information (in other words, to pass "-g" to gcc).

Sorry to post it here, but I expect Br)ucey to be among the best people to answer this :)
Feel free to move the post.


Dreamora(Posted 2010) [#2]
You can do that by altering the BMK sources.


plash(Posted 2010) [#3]
Or (probably) with Brucey's BMK NG.


Koriolis(Posted 2010) [#4]
Thanks, I had a look at BMK NG, and it appears all I have to do is to add "addccopt" to the file "custom.bmk".
Pretty neat.
The funny thing is that I already had a quick look to BMK NG (this is part of the reasons why I've posted here), but managed to miss the readme file which explains how to alter gcc options. Duh.
Thanks guys.