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)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rishah, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

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
Blocks: 480628
No longer blocks: 480628
Blocks: 480628
Attached patch Patch [v1] - logging APIs (obsolete) — Splinter Review
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)
Attachment #365071 - Flags: review?(lhansen)
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 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+
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.
Attachment #365071 - Attachment is obsolete: true
Attachment #365473 - Flags: review?(lhansen)
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 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+
Fixed changesets: 6183b3f1b6d8
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
In correct changeset above. The correct one is - ba7b9909c018
Blocks: 478870
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: