Devel::GDB

Devel::GDB is a Perl module to open and communicate a gdb session.
Download

Devel::GDB Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Antal Novak and Josef Ezra
  • Publisher web site:
  • http://search.cpan.org/~jezra/Devel-GDB-2.0/lib/Devel/GDB.pm

Devel::GDB Tags


Devel::GDB Description

Devel::GDB is a Perl module to open and communicate a gdb session. Devel::GDB is a Perl module to open and communicate a gdb session.SYNOPSIS use Devel::GDB; $gdb = new Devel::GDB(); print $gdb->send_cmd('-environment-path'); print $gdb->get('info functions');The old get syntax (of Devel::GDB-1.23) has been deprecated and will not be supported in future versions. See the documentation of the get function for an explanation of why.If you really want to use the old syntax, set $Devel::GDB::DEPRECATED to true: use Devel::GDB ; $Devel::GDB::DEPRECATED = 1; $gdb = new Devel::GDB(); print $gdb->get('info functions', $timeout, $prompt, $notyet, $alldone);The Devel::GDB package provides an interface for communicating with GDB. Internally, it uses the GDB/MI interpreter (see http://sourceware.org/gdb/current/onlinedocs/gdb_25.html), which accurately informs the caller of the program state and, through the use of tokens, guarantees that the results returned actually correspond to the request sent. By contrast, GDB's console interpreter returns all responses on STDOUT, and thus there is no way to ensure that a particular response corresponds to a particular request.Therefore, it is obviously preferable to use GDB/MI when programmatically interacting with GDB. This can be done via the send_cmd family of functions (send_cmd, send_cmd_excl, and send_cmd_async). There are, however, some cases when there is no GDB/MI command corresponding to a particular console command, or it has not yet been implemented (for example, -symbol-type, corresponding to the console command ptype, is not yet implemented as of GDB 6.6). In this case, the get function provides a workaround by capturing all output sent to the console stream. Requirements: · Perl


Devel::GDB Related Software