emit DW_AT_entry_pc for non-contiguous inlined functions

Alexandre Oliva aoliva@redhat.com
Sat Mar 3 05:53:00 GMT 2007

On Feb 28, 2007, Daniel Jacobowitz <drow@false.org> wrote:

> I'd been going under the assumption that "entry PC" is a useless
> concept for inline functions.

If you want to set breakpoints at inlined occurrences of a function,
or want to monitor executions of a function (including inlined
copies), this information helps.  It is certainly not *required* to be
there (I'm not sure any dwarf attribute is ;-), but every piece of
information is supposed to aid debuggers and other tools
(e.g. systemtap).  If the information is missing, the tool has to work
harder, so it probably must be able to deal with the absence of entry
PC.  But if we can easily emit it when it makes sense, we should.

Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}

More information about the Gcc-patches mailing list