Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!jarthur!elroy.jpl.nasa.gov!zardoz.cpd.com!dhw68k!felix!arcturus!evil From: evil@arcturus.uucp (Wade Guthrie) Newsgroups: comp.lang.c Subject: Re: assertions and debuggers Message-ID: <1990Sep24.154326.5549@arcturus.uucp> Date: 24 Sep 90 15:43:26 GMT Organization: Rockwell International Lines: 23 Lyndon VanWagner writes: > On the VAX, we have been able to redefine the assert macro to place > us into the VMS debugger at the point of error, rather than just > exiting the program. > My question is this. Is it possible to do a similiar thing to Unix C > and dbx? You don't have to! Just let the assertion dump core -- dbx (or dbxtool, if you're on a sun) can debug the core dump to put you at the statement where the core dump occurred. I don't remember whether the VMS debugger will allow one to debug a core dump (or, for that matter, whether VMS actually allows an assertion to dump core); if it does, you might try this approach rather than modifying the macro. Hope this helps. -- Wade Guthrie (evil@arcturus.UUCP) | "He gasped in terror at what sounded Rockwell International; Anaheim, CA | like a man trying to gargle while My opinions, not my employer's. | fighting off a pack of wolves" | Hitchhiker's Guide