Devel::GDB::Reflect is a reflection API for GDB/C++.
SYNOPSIS
use Devel::GDB;
use Devel::GDB::Reflect;
my $gdb = new Devel::GDB( -file => $foo );
my $reflector = new Devel::GDB::Reflect( $gdb );
print $gdb->get( "b foo.c:123" );
$gdb->print( "myVariable" );
Devel::GDB::Reflect provides a reflection API for GDB/C++, which can be used to recursively print the contents of STL data structures (vector, set, map, etc.) within a GDB session. It is not limited to STL, however; you can write your own delegates for printing custom container types.
The module implements the functionality used by the gdb++ script, which serves as a wrapper around GDB. You should probably familiarize yourself with the basic functionality of this script first, before diving into the gory details presented here.
Global Variables
The following global variables control the behavior of the "print" method.
$Devel::GDB::Reflect::INDENT
The number of spaces to indent at each level of recursion. Defaults to 4.
$Devel::GDB::Reflect::MAX_DEPTH
The maximum recursion depth. Defaults to 5.
$Devel::GDB::Reflect::MAX_WIDTH
The maximum number of elements to show from a given container. Defaults to 10.
Product's homepage
Requirements:
· Perl