Goals: With the help of GDB Pretty-Printers it is possible to tell GDB how to resolve the data structure to show the value of the object. Without Pretty-Printers the complete structure of the object will be shown.
Requirements:
- Needs GDB 7.0 or above, which includes support to write Pretty-Printers.
- Create the SystemC installation, with option --enable-debug. See install SystemC 2.3
- Download and set Pretty-Printers for SystemC 2.3. See install Pretty-Printer
- Compile and run test program. See verification
Supported datatypes:
- sc_bit, sc_bv_base,
- sc_logic, sc_lv
- sc_fixed, sc_ufixed
- sc_fix, sc_ufix
- sc_int, sc_uint
- sc_bigint, sc_biguint
Execution with Docker
docker build --force-rm=true -t systemc .
docker run --rm=true systemc version
docker run --rm=true --security-opt seccomp=unconfined systemc verification
Ressources: