diff options
author | Sverker Eriksson <[email protected]> | 2011-04-27 17:14:35 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2011-04-27 17:14:35 +0200 |
commit | 574de87663ecee7043df1783e7c3b830193b0399 (patch) | |
tree | 8351d2af0973274534168f5442c0900bce0703f8 /erts/emulator/hipe | |
parent | ef407fad10bccb97aab140f5b99786b8c7b2237a (diff) | |
parent | 261a3e9b465a1d9cbd0361c5d3801bf63950e623 (diff) | |
download | otp-574de87663ecee7043df1783e7c3b830193b0399.tar.gz otp-574de87663ecee7043df1783e7c3b830193b0399.tar.bz2 otp-574de87663ecee7043df1783e7c3b830193b0399.zip |
Merge branch 'sverker/erts_printf-halfword' into dev
* sverker/erts_printf-halfword:
erts_printf %be to print integers of size Eterm
Fix use of type BeamInstr in hipe_debug.c
Conflicts:
erts/emulator/hipe/hipe_debug.c
Diffstat (limited to 'erts/emulator/hipe')
-rw-r--r-- | erts/emulator/hipe/hipe_debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/hipe/hipe_debug.c b/erts/emulator/hipe/hipe_debug.c index c7b608aafe..7ca11f8c6c 100644 --- a/erts/emulator/hipe/hipe_debug.c +++ b/erts/emulator/hipe/hipe_debug.c @@ -51,7 +51,7 @@ static const char stars[2*sizeof(long)+5] = { extern Uint beam_apply[]; -static void print_beam_pc(Uint *pc) +static void print_beam_pc(BeamInstr *pc) { if (pc == hipe_beam_pc_return) { printf("return-to-native"); @@ -60,7 +60,7 @@ static void print_beam_pc(Uint *pc) } else if (pc == &beam_apply[1]) { printf("normal-process-exit"); } else { - Eterm *mfa = find_function_from_pc(pc); + BeamInstr *mfa = find_function_from_pc(pc); if (mfa) erts_printf("%T:%T/%bpu + 0x%bpx", mfa[0], mfa[1], mfa[2], pc - &mfa[3]); @@ -71,7 +71,7 @@ static void print_beam_pc(Uint *pc) static void catch_slot(Eterm *pos, Eterm val) { - Uint *pc = catch_pc(val); + BeamInstr *pc = catch_pc(val); printf(" | 0x%0*lx | 0x%0*lx | CATCH 0x%0*lx (BEAM ", 2*(int)sizeof(long), (unsigned long)pos, 2*(int)sizeof(long), (unsigned long)val, |