diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-11-06 16:43:43 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-11-06 16:43:43 +0000 |
commit | 9009274316d7e53bd3c54bf07f6e9ecc96916a58 (patch) | |
tree | e16d9918845fc6b4dda3b4a75986b8232f5b7c36 /sys/kern | |
parent | 4efebfe3e26e79e3b39b03e195d19ae7d8051b26 (diff) |
resort to printf debugging hints until we can figure this out. ok deraadt
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/exec_elf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c index ed6c90443eb..00a8069a8d1 100644 --- a/sys/kern/exec_elf.c +++ b/sys/kern/exec_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.c,v 1.101 2014/11/03 03:08:00 deraadt Exp $ */ +/* $OpenBSD: exec_elf.c,v 1.102 2014/11/06 16:43:42 tedu Exp $ */ /* * Copyright (c) 1996 Per Fogelstrom @@ -1008,6 +1008,7 @@ ELFNAMEEND(coredump)(struct proc *p, void *cookie) psections = mallocarray(cs.npsections, sizeof(Elf_Phdr), M_TEMP, M_WAITOK|M_ZERO); psectionslen = cs.npsections * sizeof(Elf_Phdr); + printf("coredump: malloc %zu bytes at %p\n", psectionslen, psections); /* Pass 2: now write the P-section headers. */ ws.secoff = secstart; @@ -1078,6 +1079,7 @@ ELFNAMEEND(coredump)(struct proc *p, void *cookie) } out: + printf("coredump: free %zu bytes at %p\n", psectionslen, psections); free(psections, M_TEMP, psectionslen); return (error); #endif |