This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Dwarf2 end_prologue/begin_epilogue for VMS
- From: Douglas B Rupp <rupp at gnat dot com>
- To: Jim Wilson <wilson at codesourcery dot com>, Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Olivier Hainque <hainque at adacore dot com>
- Date: Tue, 18 Aug 2009 20:17:29 -0700
- Subject: Re: [PATCH] Dwarf2 end_prologue/begin_epilogue for VMS
It has been suggested that the justification "needed for VMS Debug" was
overly terse, so please accept the following additional justification
copied from the VMS Dwarf extensions documentation:
"When a breakpoint is set on entry to a function, it is generally
desirable for execution to be suspended, not on the very first
instruction of the function, but rather at a point after the function's
frame has been set up, after any language defined local declaration
processing has been completed, and before execution of the first
statement of the function begins. Debuggers generally cannot properly
determine where this point is. Similarly for a breakpoint set on exit
from a function. The prologue and epilogue attributes allow a compiler
to communicate the location(s) to use."
http://gcc.gnu.org/ml/gcc-patches/2009-07/msg01339.html