petdance/scratch — Issue #195: src/debug.c:  Correctly handle comparisons of PMCs with constants
Author: petdance
Created: 2011-11-01 05:30:10+00:00
State: open
Labels: core, Pri-normal, Sev-medium, todo

This ticket moves into Trac discussion of an issue originally discussed in RT at [http://rt.perl.org/rt3/Ticket/Display.html?id=46123 RT #46123].

In that RT, Paul Cochrane noted this TODO item in the file in question:
{{{
1545 PARROT_CAN_RETURN_NULL
1546 PDB_condition_t *
1547 PDB_cond(PARROT_INTERP, ARGIN(const char *command))
1548 {
...
1694 else if (condition->type & PDB_cond_pmc) {
1695 /* RT #46123 Need to figure out what to do in this case.
1696 * For the time being, we just bail. */
1697 Parrot_io_eprintf(
interp->pdb->debugger, "Can't compare PMC with constant\n");
1698 mem_sys_free(condition);
1699 return NULL;
1700 }
}}}

Trac ID #1259