Aucbvax.3167 fa.unix-wizards utzoo!decvax!ucbvax!unix-wizards Tue Sep 15 19:59:18 1981 C debugging >From day@RAND-UNIX Tue Sep 15 19:51:32 1981 All C compilers should offer an option to generate a call to the routine of your choice on entrance to every subroutine, and a similar option for the return from each subroutine. This would aid in tracking down memory heap corruptions, and would make it easier to get the debugger of your choice to skip to the next entrance to or exit from a subroutine. When you invoke the VAX C compiler with -p for profiling it generates an assembly-language call to a profiling subroutine for which I substituted my own heap-checker, and that enabled me to zero in on a heap-violation which was caused by an array- out-of-bounds condition. --dave ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.