david.docteur Posted March 27, 2015 Report Share Posted March 27, 2015 Hi guys,I am having some trouble with GDB and the SystemC library. I have searched for similar topics but couldn't find anything relevant.Here is the case:I have a message_queue.hpp which inherits from a message_queue_if.h interface and the message_queue_if.h inherits from sc_core::sc_module.When I use the SystemC library (debug version), I do have access to the debug data (gdb and Eclipse) for the membersfrom my message_queue.hpp AND message_queue_if.h files.But when I use the release version of SystemC, I have access only to the members in my message_queue .hpp file.The debug data for my interface (message_queue_if.h) shows : <No data fields> within GDB. Here is the output: Debug: $1 = {<cf_core::cf_message_queue_if> = {<sc_core::sc_module> = <cf_core::cf_multiple_wait_if> .......Release: $1 = {<cf_core::cf_message_queue_if> = {<No data fields>} .... Is it because gdb lacks of symbols for the SystemC library ?Thank you for your help. Quote Link to comment Share on other sites More sharing options...
kartikkg Posted March 27, 2015 Report Share Posted March 27, 2015 Hi , Release version will not contain symbols as it will reduce the performance and/or will result in debug prints. Regards, Kartik Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted March 27, 2015 Report Share Posted March 27, 2015 Since SystemC 2.3.1, you can easily configure optimization and the availability of debug symbols individually: ../configure --enable-optimize --enable-debug ... builds an optimized library with debug symbols without (significant) loss of performance. hth, Philipp Quote Link to comment Share on other sites More sharing options...
david.docteur Posted March 30, 2015 Author Report Share Posted March 30, 2015 Thank you guys for your answers ! It was a debugging symbols issue. 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.