How to debug a perl script using gdb

Click here to load reader

  • date post

    25-May-2015
  • Category

    Technology

  • view

    2.069
  • download

    0

Embed Size (px)

Transcript of How to debug a perl script using gdb

  • 1. Perl gdb 2011/10/15YAPC::Asia Tokyo 2011 @

2. Perl

  • perl
    • perl

3.

  • https:// github.com/ahiguti/gdbperl
  • :
    • id $ gdbperl.pl 24113
    • $ gdbperl.pl core.24113 /usr/bin/perl
  • perl

4.

  • use IO::Socket::INET; sub baz { while (1) { my $sd = new IO::Socket::INET(
  • PeerAddr => '10.1.0.0:80'); # sleep(1); } } sub bar { baz($_[0]); } sub foo { bar(35, 5.98, "xyz", @_); } foo("abc");

5. gdbperl.pl

  • [10] IO::Socket::connect()