зеркало из https://github.com/mozilla/gecko-dev.git
Note out-of-component pointers.
This commit is contained in:
Родитель
19c7b311b2
Коммит
e4a3611b34
|
@ -384,10 +384,14 @@ int main(int argc, char **argv)
|
|||
AllocationNode *target = (AllocationNode*)
|
||||
PL_HashTableLookup(memory_map, *(void**)(e->data + d));
|
||||
if (target) {
|
||||
printf(" <a href=\"#o%d\">0x%08X</a> <%s>\n",
|
||||
printf(" <a href=\"#o%d\">0x%08X</a> <%s>",
|
||||
target - nodes,
|
||||
*(unsigned int*)(e->data + d),
|
||||
target->entry->type);
|
||||
if (target->index != n->index) {
|
||||
printf(", component %d", target->index);
|
||||
}
|
||||
printf("\n");
|
||||
} else {
|
||||
printf(" 0x%08X\n",
|
||||
*(unsigned int*)(e->data + d));
|
||||
|
@ -403,6 +407,9 @@ int main(int argc, char **argv)
|
|||
const ADLog::Entry *te = t->entry;
|
||||
printf(" <a href=\"#o%d\">%s</a> (Object %d, ",
|
||||
t - nodes, te->type, t - nodes);
|
||||
if (t->index != n->index) {
|
||||
printf("component %d, ", t->index);
|
||||
}
|
||||
if (t == n) {
|
||||
printf("self)\n");
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче