Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by aheimberger

  1. Hey Guys, I don't know if you know about GDB Pretty-Printer. GDB Pretty-Print let you print your debug output in a legible way. I tried to write the Pretty-Printers analyzing the SystemC 2.3 implementation and I was learning how the information is stored within the SystemC implementation. You will find the Pretty-Printer under following link. https://github.com/AHeimberger/SystemC-2.3-Pretty-Printer On Github you will find instructions about installing the Pretty-Printer and a verification python file. Hope this Pretty-Printer helps you and does not cause to many problems. I were also able to use them within Eclipse. Cheers Andy
  2. I get following message when I debug and print a variable of type sc_dt::sc_int<N> &"print integer\n" ~"$4 = {<sc_dt::sc_int_base> = {<No data fields>}, <No data fields>}" I tried to add debug informations with no success. I did following. Install of the shared Library in Linux sudo su Untar the package using - change permissions "chmod -R +x systemc-2.3.0" Change to the top level directory systemc-2.3.0 : cd systemc-2.3.0 Make a directory systemc230 for installation in your /usr/local/ path. "mkdir /usr/local/systemc230" Make a directory “objdir” in the directory systemc-2.3.0 : "mkdir objdir" Change to objdir : cd objdir now type: export CXX=g++ export OPT_CXXFLAGS=-O0 Run configure from objdir: ../configure --prefix=/usr/local/systemc230 Do: make Install by typing command: make install First make this export SYSTEMC_HOME=/usr/local/systemc230/ My Sample Program #define SC_INCLUDE_FX #include <systemc.h> int sc_main( int, char*[]){ sc_int<30> integer; integer = 12; integer = -15; return 0; } Then this to create your program g++ -I. -I$SYSTEMC_HOME/include -L. -L$SYSTEMC_HOME/lib-linux -Wl,-rpath=$SYSTEMC_HOME/lib-linux -o main main.cpp -g -O0 -lsystemc -lm System I Use GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04 g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Ubuntu "12.04.2 LTS, Precise Pangolin" What am I doing wrong? What am I supposed to do?
  • Create New...