Closed
Bug 559967
(tamarin-debugging)
Opened 15 years ago
Closed 7 years ago
Improve Tamarin debugging and diagnostic facilities
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
RESOLVED
WONTFIX
Future
People
(Reporter: rreitmai, Unassigned)
References
Details
(Whiteboard: Tracking)
Attachments
(1 file)
646 bytes,
patch
|
edwsmith
:
review+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Updated•15 years ago
|
Reporter | ||
Updated•15 years ago
|
Updated•15 years ago
|
Alias: tamarin-debugging
Reporter | ||
Comment 1•15 years ago
|
||
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 2•15 years ago
|
||
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+
Reporter | ||
Comment 3•15 years ago
|
||
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
Comment 4•15 years ago
|
||
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.
Reporter | ||
Comment 5•15 years ago
|
||
Ohhh good point; missed that sorry.
Reporter | ||
Comment 6•15 years ago
|
||
Updated•15 years ago
|
Whiteboard: Tracking
Comment 7•7 years ago
|
||
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•