Installation

Load mcGDB from GDB

Put in .gdbinit:

python
sys.path.append("/path/to/Python")
try:
  import mcgdb
  #mcgdb.initialize()
  mcgdb.initialize_by_name()
except Exception as e:
  import traceback
  print ("Couldn't load Model-Centric Debugging: %s" % e)
  traceback.print_exc()
end

Put in your $PATH:

ln -s gdb mcgdb ln -s mcgdb mcgdb-omp

Test and benchmark mcGDB

With sys.path correctly configured, run:

import mcgdb.testing
mcgdb.testing.run_tests()
mcgdb.testing.run_benchmark()

or from command-line:

python3 -c 'import mcgdb.testing; mcgdb.testing.run_tests(); mcgdb.testing.run_benchmark()'

Generate mcGDB documentation

cd /path/to/mcgdb
cd documentation
make html
# or
make -f /path/to/mcgdb/documentation/Makefile html

Requirements

Convenience with GDB/mcGDB

Add these lines to your .gdbinit:

## almost mandatory:

set height 0
set width 0

## for conveniance:

set breakpoint pending on
set print pretty
set confirm off

# for debugging

set python print-stack full