.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Devel::GDB::LowLevel 3pm" .TH Devel::GDB::LowLevel 3pm "2016-10-01" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Devel::GDB::LowLevel \- Low\-level interface for communicating with GDB .SH "DESCRIPTION" .IX Header "DESCRIPTION" This module is used internally by Devel::GDB. It handles the low-level I/O of communicating with the \s-1GDB\s0 process. .SH "CONSTRUCTOR" .IX Header "CONSTRUCTOR" .IP "new" 4 .IX Item "new" Spawns a \s-1GDB\s0 process. Because this class only facilitates communication with \&\s-1GDB \s0(\fInot\fR with the inferior process being debugged), you have to decide what to do with the \f(CW\*(C`STDIN\*(C'\fR, \f(CW\*(C`STDOUT\*(C'\fR, and \f(CW\*(C`STDERR\*(C'\fR of that process. There are a few options available: .RS 4 .IP "\(bu" 4 If \s-1STDIN\s0 is a tty, we can have the inferior process communicate directly with the controlling tty (emulating the default behavior of gdb): .Sp .Vb 2 \& $gdb = new Devel::GDB::LowLevel( \*(Aq\-execfile\*(Aq => $path_to_gdb, \& \*(Aq\-params\*(Aq => $extra_gdb_params ); .Ve .IP "\(bu" 4 Or, we can create an \f(CW\*(C`Expect\*(C'\fR object to communicate with the inferior process: .Sp .Vb 2 \& $gdb = new Devel::GDB::LowLevel( \*(Aq\-create\-expect\*(Aq => 1 ); \& $expect = $gdb\->get_expect_obj(); .Ve .IP "\(bu" 4 Or, we can create our own tty and use that: .Sp .Vb 1 \& $gdb = new Devel::GDB::LowLevel( \*(Aq\-use\-tty\*(Aq => \*(Aq/dev/pts/123\*(Aq ); .Ve .RE .RS 4 .RE .SH "METHODS" .IX Header "METHODS" .IP "send" 4 .IX Item "send" Sends a raw line of text to \s-1GDB. \s0 This should not contain any newlines (they will be stripped). This method only sends a request, and does not wait for a response. .IP "get_reader" 4 .IX Item "get_reader" Returns the file handle from which to read \s-1GDB\s0 responses. .IP "get_expect_obj" 4 .IX Item "get_expect_obj" Returns the \f(CW\*(C`Expect\*(C'\fR object created in the constructor. Dies if \&\f(CW\*(Aq\-create\-expect\*(Aq\fR was not passed to \f(CW\*(C`new\*(C'\fR. .IP "interrupt" 4 .IX Item "interrupt" Send \s-1SIGINT\s0 to the \s-1GDB\s0 session, interrupting the inferior process (if any). .SH "SEE ALSO" .IX Header "SEE ALSO" IPC::Open2 .SH "AUTHORS" .IX Header "AUTHORS" Antal Novak , Josef Ezra .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" Copyright (C) 2007 by Antal Novak & Josef Ezra .PP This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.