Ticket #885 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

parrot_debugger printing registers does not work

Reported by: dukeleto Owned by: dukeleto
Priority: normal Milestone:
Component: none Version: 1.4.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

(pdb) h p Print register: e.g. "p i2" Note that the register type is case-insensitive. If no digits appear after the register type, all registers of that type are printed.

(pdb) p i2 no such reg

Change History

Changed 5 years ago by dukeleto

  • status changed from new to assigned
  • owner set to dukeleto

Tests that verify that printing registers do indeed work have been added in r40324 . The confusion was that after the debugged program completes, the state of the Parrot registers is cleared, so one must peak at the registers while it is running instead of after program completion. Is this expected?

Changed 5 years ago by NotFound

Registers belong to contexts, there is no point in printing registers when there is no context, that is, before executing anything or after program ends.

BTW, you can't take for granted that pir register $I0 maps to register I0, the register allocator can map pir registers in any way he likes. I think that in the test case there is no reason to use a higher number, though.

Changed 5 years ago by dukeleto

  • status changed from assigned to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.