aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_debug.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-12-09 19:28:15 +0100
committerSverker Eriksson <[email protected]>2015-12-09 20:18:18 +0100
commitbb5f71a7573158056dd9c80228c95833f970ec0b (patch)
tree6ff2459c8e64c771933e1fb66b28eb406864b4d4 /erts/emulator/beam/erl_debug.c
parenteb2e118ee2be5c008fc4417a443c351807adf123 (diff)
downloadotp-bb5f71a7573158056dd9c80228c95833f970ec0b.tar.gz
otp-bb5f71a7573158056dd9c80228c95833f970ec0b.tar.bz2
otp-bb5f71a7573158056dd9c80228c95833f970ec0b.zip
erts: Add proc dict macros ERTS_PD_START/SIZE
Diffstat (limited to 'erts/emulator/beam/erl_debug.c')
-rw-r--r--erts/emulator/beam/erl_debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_debug.c b/erts/emulator/beam/erl_debug.c
index 2dcfb79f00..a2af3adf70 100644
--- a/erts/emulator/beam/erl_debug.c
+++ b/erts/emulator/beam/erl_debug.c
@@ -416,7 +416,7 @@ void verify_process(Process *p)
erts_check_heap(p);
if (p->dictionary)
- VERIFY_AREA("dictionary",p->dictionary->data, p->dictionary->used);
+ VERIFY_AREA("dictionary", ERTS_PD_START(p->dictionary), ERTS_PD_SIZE(p->dictionary));
VERIFY_ETERM("seq trace token",p->seq_trace_token);
VERIFY_ETERM("group leader",p->group_leader);
VERIFY_ETERM("fvalue",p->fvalue);
@@ -542,8 +542,8 @@ static void print_process_memory(Process *p)
}
if (p->dictionary != NULL) {
- int n = p->dictionary->used;
- Eterm *ptr = p->dictionary->data;
+ int n = ERTS_PD_SIZE(p->dictionary);
+ Eterm *ptr = ERTS_PD_START(p->dictionary);
erts_printf(" Dictionary: ");
while (n--) erts_printf("0x%0*lx ",PTR_SIZE,(unsigned long)ptr++);
erts_printf("\n");