Matheus Gomes de Sousa Posted March 7, 2018 Report Share Posted March 7, 2018 How can I execute examples of systemC with debbuger mode? I have installed with flag --enable-debug , and did 'make -d' for the simple_fifo example, but when I execute the the example, it don't shows the debugger simbols. Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted March 7, 2018 Report Share Posted March 7, 2018 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 Quote Link to comment Share on other sites More sharing options...
maehne Posted March 8, 2018 Report Share Posted March 8, 2018 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. Matheus Gomes de Sousa 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.