I'm trying to track down a segmentation fault that I've been able to isolate to just a few lines of code on different versions of Perl. I use perlbrew to manage my various versions for development and testing, but it doesn't build perl with debugging symbols, so using gdb to analyse the core dump file is pretty useless.
So what's the best way to have perlbrew build with debugging symbols enabled. And if possible I'd like to be able to have it be a separate perl that I could switch to instead of overriding the standard one for the same version.
perlbrew install perl-5.8.8 --as='perl-5.8.8-debug' -DEBUGGING=both
. Then to inspect it with gdb I rangdb /home/mpeters/perl5/perlbrew/perls/perl-5.8.8-debug/bin/perl
and gdb still says "Reading symbols from /home/mpeters/perl5/perlbrew/perls/perl-5.8.8-debug/bin/perl...(no debugging symbols found)", so obviously I'm still missing something. – Dromond