Closed Bug 559967 (tamarin-debugging) Opened 14 years ago Closed 6 years ago

Improve Tamarin debugging and diagnostic facilities

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: rreitmai, Unassigned)

References

Details

(Whiteboard: Tracking)

Attachments

(1 file)

Debugging tamarin bugs can be very laborious and often requires significant effort in building up a custom environment to support features that could just as easily be rolled into a debug or even release-debugger build.

Some examples:
  - dumping name,offset pairs of members for a given ScriptObject at a gdb prompt.
  - controlling which function are jit'd 

As these efforts are quite diverse and represent multiple 'features' this bug serves as a tracking bug any work in this area.
Summary: Improve Tamarin debugging facilities → Improve Tamarin debugging and diagnostic facilities
Depends on: 553759, 543580, 528375
Depends on: 550361
Depends on: 555345
Depends on: 545452
Target Milestone: --- → Future
Flags: flashplayer-qrb+
Depends on: 562480
Alias: tamarin-debugging
Depends on: 567900
Depends on: 566463
Attached patch ver 1Splinter Review
Patch that modifies verifier output to print status of notNull bit in a more consistent fashion, using the '~' character to represent the state of this bit.
Attachment #451158 - Flags: review?(edwsmith)
Comment on attachment 451158 [details] [diff] [review]
ver 1

now that the suffix is the same either way, the code could be simplified:

add if (!t || ...) to the second if, and delete the first one completely


         Traits* t = v.traits;
         PrintWriter& out = core->console;
         out << t;
         if (!t || !t->isNumeric() && t != BOOLEAN_TYPE && t != NULL_TYPE && t != VOID_TYPE)
             out << (v.notNull ? "~" : "");
Attachment #451158 - Flags: review?(edwsmith) → review+
I noticed that we still need to have an if (!t) {} else {} since we output '*' when t is null and compiler barfs if PrintWriter is passed 2 types ala out << t ? t : "*".   We could some trickery to make it all happen but probably not worth it and anyway the resulting code didn't look much better in my eyes, so I checked in the original patch.

http://hg.mozilla.org/tamarin-redux/rev/be1f59904cff
I assumed that ... << (Traits*) 0 << ... would work, because the other day I noticed in PrintWriter.cpp, we have:

        PRINT_STAR_OPERATOR_SUPPORT(Traits,"*")

If it's not for auto-converting a null Traits* to "*", then what's it for?

Anyway, its a nit.
Ohhh good point;  missed that sorry.
Whiteboard: Tracking
Depends on: 583853
Depends on: 606031
Depends on: 607528
Depends on: 607669
Depends on: 604845
Depends on: 581553
Depends on: 614657
Depends on: 619093
Depends on: 638136
Depends on: 640318
Depends on: 698111
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: