mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Note out-of-component pointers.
This commit is contained in:
parent
19c7b311b2
commit
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user