petdance/scratch — Issue #323: Pmc2c line numbering confuses gdb
Author: petdance
Created: 2011-11-01 04:25:41+00:00
State: open

Using the default configuration, gdb is unable to step through vtables, giving messages such as:

{{{

0x00007ffff7a90ae4 in Parrot_OpLib_init_pmc (
interp=0x60a080, _self=0x789770,
name_pmc=0x7892d0)
from /home/pitr/dev/parrot/dynop_mapping/blib/lib/libparrot.so.2.6.0
(gdb) n
Single stepping until exit from function Parrot_OpLib_init_pmc,
which has no line number information.
Parrot_pmc_new_init (interp=0x60a080, base_type=37,
init=0x7892d0) at src/pmc.c:551
551	return pmc;

}}}

This is a significant drag because much Parrot functionality is inside vtables.

Reconfiguring with --no-line-directives, which disables line directive generation from tools such as pmc2c, the vtables become steppable.