Closed
Bug 480638
Opened 16 years ago
Closed 16 years ago
Creating Porting APIs for logging messages and debug info
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: rishah, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
125.96 KB,
patch
|
lhansen
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6
Build Identifier:
Tamarin codebase uses printf, fprintf functions in the core code to output diagnostic and debug information.
We want provide APIs that can be implemented by the platform in their defined way to print or gather this information.
Reproducible: Always
Reporter | ||
Comment 1•16 years ago
|
||
Summary -
3 new APIs - VMPI_Log, VMPI_DebugLog and VMPI_DebugBreak
Removed GCDebug[Win/Mac/Unix] and replaced it with (core) GCDebug.cpp
Added GCLog() to replace printf/fprintf usage for MMgc
Removed AvmDebug[Win/Mac/Unix] and replaced it with (core) AvmDebug.cpp
Added AvmLog() to replace printf/fprintf usage for avmplus
Platform specific implementations of Log/DebugLog and DebugBreak added new files [Win/Posix]PortUtils under shell directory.
Attachment #365071 -
Flags: review?(edwsmith)
Reporter | ||
Updated•16 years ago
|
Attachment #365071 -
Flags: review?(lhansen)
Comment 2•16 years ago
|
||
Comment on attachment 365071 [details] [diff] [review]
Patch [v1] - logging APIs
I got a lot of merge failures here because of Tommy's mega-checkin, but the API looks OK to me. Not reviewed in depth.
Attachment #365071 -
Flags: review?(lhansen) → review+
Comment 3•16 years ago
|
||
Comment on attachment 365071 [details] [diff] [review]
Patch [v1] - logging APIs
If GCLog and AVMLog are two api's for the exact same functionality, it'd be nice to have just one. other than that nit, looks ok.
Attachment #365071 -
Flags: review?(edwsmith) → review+
Reporter | ||
Comment 4•16 years ago
|
||
Right now they are similar but they would be different once AvmLog would in turn use PrintWriter::formatV like function to format the string instead of using vsprintf.
Reporter | ||
Comment 5•16 years ago
|
||
Attachment #365071 -
Attachment is obsolete: true
Attachment #365473 -
Flags: review?(lhansen)
Comment 6•16 years ago
|
||
I find this to be unreviewable, there is a large number of merge problems. Which patches are you assuming to be applied before this one is applied?
Comment 7•16 years ago
|
||
Comment on attachment 365473 [details] [diff] [review]
Final patch [v2] - incorporating feedback from patch [v1] review
tentatively approved. awaiting new patches, i will take care of landing it.
Attachment #365473 -
Flags: review?(lhansen) → review+
Reporter | ||
Comment 8•16 years ago
|
||
Fixed changesets: 6183b3f1b6d8
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 9•16 years ago
|
||
In correct changeset above.
The correct one is - ba7b9909c018
Updated•15 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•