mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 741242 - Fix profiler address output broken by bug 739800 on Mac 64 bit. r=bgirard
This commit is contained in:
parent
8771612c40
commit
da96529e15
@ -291,8 +291,8 @@ public:
|
||||
if (sample) {
|
||||
JSObject *frame = b.CreateObject();
|
||||
char tagBuff[1024];
|
||||
void* pc = (void*)entry.mTagData;
|
||||
snprintf(tagBuff, 1024, "%p", pc);
|
||||
unsigned long long pc = (unsigned long long)entry.mTagData;
|
||||
snprintf(tagBuff, 1024, "%#llx", pc);
|
||||
b.DefineProperty(frame, "location", tagBuff);
|
||||
b.ArrayPush(frames, frame);
|
||||
}
|
||||
@ -673,8 +673,8 @@ std::ostream& operator<<(std::ostream& stream, const ProfileEntry& entry)
|
||||
// Bug 739800 - Force l-tag addresses to have a "0x" prefix on all platforms
|
||||
// Additionally, stringstream seemed to be ignoring formatter flags.
|
||||
char tagBuff[1024];
|
||||
Address pc = entry.mTagAddress;
|
||||
snprintf(tagBuff, 1024, "l-%#x\n", pc);
|
||||
unsigned long long pc = (unsigned long long)entry.mTagData;
|
||||
snprintf(tagBuff, 1024, "l-%#llx\n", pc);
|
||||
stream << tagBuff;
|
||||
} else {
|
||||
stream << entry.mTagName << "-" << entry.mTagData << "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user