aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe/hipe_x86_stack.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-12-04 11:29:03 +0100
committerGitHub <[email protected]>2017-12-04 11:29:03 +0100
commitfbb3d973d98d19a88d926c86dc2ce95ef4f175e8 (patch)
tree4fab27df9f401d154e735c85fd9b711f68aaddef /erts/emulator/hipe/hipe_x86_stack.c
parentcba4dc777a3b870985d0a925c7b4e827468a4bb2 (diff)
parentd71c5604e7ba5e30391c493fb46e67a0284cef76 (diff)
downloadotp-fbb3d973d98d19a88d926c86dc2ce95ef4f175e8.tar.gz
otp-fbb3d973d98d19a88d926c86dc2ce95ef4f175e8.tar.bz2
otp-fbb3d973d98d19a88d926c86dc2ce95ef4f175e8.zip
Merge pull request #1628 from mikpe/erts-hipe-more-print-fixes
fix output formatting in several HiPE debug BIFs OTP-14804
Diffstat (limited to 'erts/emulator/hipe/hipe_x86_stack.c')
-rw-r--r--erts/emulator/hipe/hipe_x86_stack.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/erts/emulator/hipe/hipe_x86_stack.c b/erts/emulator/hipe/hipe_x86_stack.c
index 31582b3a2e..615e07917a 100644
--- a/erts/emulator/hipe/hipe_x86_stack.c
+++ b/erts/emulator/hipe/hipe_x86_stack.c
@@ -43,8 +43,10 @@ static void print_slot(Eterm *sp, unsigned int live)
printf(" | 0x%0*lx | 0x%0*lx | ",
2*(int)sizeof(long), (unsigned long)sp,
2*(int)sizeof(long), val);
- if (live)
+ if (live) {
+ fflush(stdout);
erts_printf("%.30T", val);
+ }
printf("\r\n");
}
@@ -74,7 +76,9 @@ void hipe_print_nstack(Process *p)
sdesc0.livebits[0] = ~1;
sdesc = &sdesc0;
- printf(" | NATIVE STACK |\r\n");
+ printf(" | %*s NATIVE STACK %*s |\r\n",
+ 2*(int)sizeof(long)-5, "",
+ 2*(int)sizeof(long)-4, "");
printf(" |%s|%s|\r\n", dashes, dashes);
printf(" | %*s | 0x%0*lx |\r\n",
2+2*(int)sizeof(long), "heap",