зеркало из 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*)
|
AllocationNode *target = (AllocationNode*)
|
||||||
PL_HashTableLookup(memory_map, *(void**)(e->data + d));
|
PL_HashTableLookup(memory_map, *(void**)(e->data + d));
|
||||||
if (target) {
|
if (target) {
|
||||||
printf(" <a href=\"#o%d\">0x%08X</a> <%s>\n",
|
printf(" <a href=\"#o%d\">0x%08X</a> <%s>",
|
||||||
target - nodes,
|
target - nodes,
|
||||||
*(unsigned int*)(e->data + d),
|
*(unsigned int*)(e->data + d),
|
||||||
target->entry->type);
|
target->entry->type);
|
||||||
|
if (target->index != n->index) {
|
||||||
|
printf(", component %d", target->index);
|
||||||
|
}
|
||||||
|
printf("\n");
|
||||||
} else {
|
} else {
|
||||||
printf(" 0x%08X\n",
|
printf(" 0x%08X\n",
|
||||||
*(unsigned int*)(e->data + d));
|
*(unsigned int*)(e->data + d));
|
||||||
|
@ -403,6 +407,9 @@ int main(int argc, char **argv)
|
||||||
const ADLog::Entry *te = t->entry;
|
const ADLog::Entry *te = t->entry;
|
||||||
printf(" <a href=\"#o%d\">%s</a> (Object %d, ",
|
printf(" <a href=\"#o%d\">%s</a> (Object %d, ",
|
||||||
t - nodes, te->type, t - nodes);
|
t - nodes, te->type, t - nodes);
|
||||||
|
if (t->index != n->index) {
|
||||||
|
printf("component %d, ", t->index);
|
||||||
|
}
|
||||||
if (t == n) {
|
if (t == n) {
|
||||||
printf("self)\n");
|
printf("self)\n");
|
||||||
} else {
|
} else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче