diff options
author | Lukas Larsson <[email protected]> | 2018-12-21 10:37:33 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2019-01-15 16:34:17 +0100 |
commit | 6f8bb9b6fb5dc6bda960a95b36274f84e1b6330c (patch) | |
tree | 057dcbe3720ef7ff817daab8dfbe1f96c7a38afb /erts | |
parent | 2a46ca2dbe1410c1e7ce057051cdb65526a87485 (diff) | |
download | otp-6f8bb9b6fb5dc6bda960a95b36274f84e1b6330c.tar.gz otp-6f8bb9b6fb5dc6bda960a95b36274f84e1b6330c.tar.bz2 otp-6f8bb9b6fb5dc6bda960a95b36274f84e1b6330c.zip |
erts: Remove dead gdb functions from code
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/beam/utils.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c index 1a6bcbb66e..a231638b50 100644 --- a/erts/emulator/beam/utils.c +++ b/erts/emulator/beam/utils.c @@ -4788,58 +4788,3 @@ erts_ptr_id(void *ptr) return ptr; } -#ifdef DEBUG -/* - * Handy functions when using a debugger - don't use in the code! - */ - -void upp(byte *buf, size_t sz) -{ - bin_write(ERTS_PRINT_STDERR, NULL, buf, sz); -} - -void pat(Eterm atom) -{ - upp(atom_tab(atom_val(atom))->name, - atom_tab(atom_val(atom))->len); -} - - -void pinfo() -{ - process_info(ERTS_PRINT_STDOUT, NULL); -} - - -void pp(p) -Process *p; -{ - if(p) - print_process_info(ERTS_PRINT_STDERR, NULL, p); -} - -void ppi(Eterm pid) -{ - pp(erts_proc_lookup(pid)); -} - -void td(Eterm x) -{ - erts_fprintf(stderr, "%T\n", x); -} - -void -ps(Process* p, Eterm* stop) -{ - Eterm* sp = STACK_START(p) - 1; - - if (stop <= STACK_END(p)) { - stop = STACK_END(p) + 1; - } - - while(sp >= stop) { - erts_printf("%p: %.75T\n", sp, *sp); - sp--; - } -} -#endif |