develooper Front page | perl.perl5.porters | Postings from April 2006

[perl #38966] debugger can't breakpoint until module loaded

Thread Previous | Thread Next
Albert Cahalan
April 24, 2006 15:53
[perl #38966] debugger can't breakpoint until module loaded
Message ID:
# New Ticket Created by  "Albert Cahalan" 
# Please include the string:  [perl #38966]
# in the subject line of all future correspondence about this issue. 
# <URL: >

I'm trying to debug pidl, the IDL compiler shipped with Samba and Ethereal.
Supposedly you can find it on CPAN.

Unlike gdb debugging C programs, the perl debugger is unable to place
breakpoints on things that don't yet exist. By this I mean functions
found in libraries that have yet to be loaded. It seems I have to somehow
find where the libraries get loaded, breakpoint that, single step, then
breakpoint what I want. This is awful, especially when dealing with
unfamiliar code. Here is the error message:

  DB<9> b Parse::Pidl::Samba4::EJS::EjsPushArray
Subroutine Parse::Pidl::Samba4::EJS::EjsPushArray not found.

The below perlbug data is hacked a bit, since I shouldn't send bug
reports from work. FYI it's an AMD64 running Fedora Core 5.

Site configuration information for perl:

Summary of my perl5 configuration:
    osname=linux, osvers=2.6
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=1234

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About