Antal Novak > Devel-GDB-Reflect-0.2 > gdb++

Download:
Devel-GDB-Reflect-0.2.tar.gz

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source  

NAME ^

gdb++ - GDB wrapper providing nice reflection features

SYNOPSIS ^

 gdb++ [options] [executable-file [core-file or process-id]]
 gdb++ [options] --args executable-file [inferior-arguments ...]

OPTIONS

--args

Pass all parameters after executable-file to the program being debugged.

-v

If STDIN is not a tty (e.g. it's a pipe), echo back the GDB prompt as well as the command being executed.

-g PATH

Specify the path to the gdb executable. Defaults to gdb.

DESCRIPTION ^

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 provides a script, "gdb++", which serves as a wrapper around GDB. Invoke it the same way you would invoke gdb, e.g.:

 $ gdb++ MYPROG

Within the gdb++ session, you can execute the same commands as within gdb, with the following extensions:

syntax highlighting: