On Feb-22, Leopold Toetsch wrote: > Steve Fink wrote: > > >In my local copy (currently locked away on my home hard drive, so I > >can't post it from here at work), I also added stabs entries for all > >the PMC registers (in addition to the current S, I, and N registers.) > >You can see the PMC's data fields and type. It looks something like: > > > > (gdb) p P0 > > (PMC*) 0xdeadbeef > > (gdb) p *P0 > > { vtable = 0xdeadbeef, pobj = { u = { int_val = 17, pmc_val = 0x17 }, > > flags = 381741 } } > > (gdb) p *P0->vtable > > { base_type = PerlArray } > > > >(I added an enumeration for the PMC types). > > Wow, fine, fine.
Ok, committed, along with detailed instructions on how to use this and various other debugging tricks in docs/debug.pod. When I wrote it, I took a look at GC_VERBOSE. It's a bit changed, and I can't figure out how it works anymore. Does it still work? I didn't try. Anyone with debugging tips, please add them to docs/debug.pod. (Well, imcc-specific stuff should probably be elsewhere. I already have a pointer to the command-line flags in languages/imcc/docs/running.pod.)