Changes between Version 3 and Version 4 of Guide


Ignore:
Timestamp:
Aug 8, 2013, 9:30:44 AM (7 years ago)
Author:
vadim.godunko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Guide

    v3 v4  
    8383
    8484Install target is used DESTDIR environment variable to adjust root directory, it is very useful for binary packages supporters.
     85
     86== Debugging of appications ==
     87
     88Matreshka provides GDB plugin to pretty printing of provided data types: you will see textual representation of actual data instead of content of internal data structures.
     89
     90=== Setup ===
     91
     92You need to copy gdb/python/matreshka.py file to somewhere in you file tree and add line to load this file into .gdbinit file:
     93
     94{{{
     95source <path>/matreshka.py
     96}}}
     97
     98Next time you run GDB it will load plugin to pretty print Matreshka's data types. Note, due to GDB architecture this works only on objects of Matreshka's datatypes, not on user defined record or array types. Thus, if you debugging following code:
     99
     100{{{
     101#!ada
     102   type Person is record
     103      Name : League.Strings.Universal_String;
     104   end record;
     105
     106   Obj : Person;
     107}}}
     108
     109the only way to print value of Obj.Name is to use
     110
     111{{{
     112print Obj.Name
     113}}}