Jump to content

Recommended Posts

I don't know how autotools flow works. But in case you can use CMake, it is very easy to complie in debug mode, just add -DCMAKE_BUILD_TYPE=Debug when generating Makefile.


$ mkdir build_debug
$ cd build_debug
$ cmake ../ -DCMAKE_BUILD_TYPE=Debug
$ make -j8 simple_fifo
$ gdb ./examples/sysc/simple_fifo/simple_fifo 


Share this post

Link to post
Share on other sites

If you use the Makefile provided along the simple_fifo example, it should get compiled with debug symbols. On the console, you should see that the .cpp files get compiled with the "-g" switch. To actually make use of the debugging symbols, you have to execute the example in a debugger such as gdb (as Roman already pointed out).

By the way, "make -d" does not influence which flags are passed to the C++ compiler. It just makes the output of make itself more verbose.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now