How to debug a Perl extension?

From: kj (socyl_at_987jk.com)
Date: 04/24/04


Date: Sat, 24 Apr 2004 12:56:46 +0000 (UTC)


I'm trying to track down an apparent bug in a large Perl extension
module called XML::Xerces. This extension links to a library
libxerces-c.so.23, coded in C++.

The bug occurs during a call to one of the functions defined in
libxerces-c.so.23 and I would like to step into that call. I've
heard that it is possible to do this, in one compiles all the
relevant binaries with the right debugging flagsi (see below), but
I'm not really sure if this is enough. I could use some pointers
here.

Anyway, I compiled both libxerces-c.so.23 as well as the binaries
for XML::Xerces using the '-g' flag, installed the libraries, and
fired up the debugger (DB) as usual. I advanced the execution up
to the problematic function call, but when I tried to step into it
(using 's'), the debugger stepped right over it, as if I had hit
'n' instead of 's'. In other words, it behaved as it always did
when encountering a call to a function not written in Perl.

Is there anything else I must do to be able to step into C++ code?

Thanks!

kj

-- 
NOTE: In my address everything before the period is backwards.


Relevant Pages

  • Re: How to debug a Perl extension?
    ... > heard that it is possible to do this, in one compiles all the ... > relevant binaries with the right debugging flagsi, ... > when encountering a call to a function not written in Perl. ... but did you use the right debugger? ...
    (comp.lang.perl.modules)
  • Re: Different version Access
    ... I will have my first MDB in 2000 and then follow your steps ... Libraries are code-add-ins that provide additional functionality. ... way to break your database. ... If it compiles after the library is unchecked, ...
    (microsoft.public.access.modulesdaovba)
  • g95: undefined symbol
    ... I am building shared libraries to be loaded from within Python. ... All compiles well and runs well with the Intel compiler. ... I can't reasonably keep them merged though, for licensing reasons. ...
    (comp.lang.fortran)
  • Debugging with Tornado 2.2 and no "-g" switch crashes debugger, or debugger doesnt work at all.
    ... I've just encountered some strange problems debugging code with Tornado 2.2 ... If I build my 2 libraries with debug info, ... one of my libraries, the debugger crashes. ...
    (comp.os.vxworks)
  • Re: Problems compiling with ISE Webpack 8.2.01i
    ... end MAJ3; ... port map,X,A1); ... This code compiles properly and I do see the waveform that I am ... I would like to know more about the libraries and the ...
    (comp.arch.fpga)