dbghelp: More precisely manage the inline attribute.

This commit is contained in:
Eric Pouech 2011-03-08 21:30:42 +01:00 committed by Alexandre Julliard
parent 0816d8f4bf
commit 6d49f958de
2 changed files with 7 additions and 1 deletions

View File

@ -1764,7 +1764,8 @@ static struct symt* dwarf2_parse_subprogram(dwarf2_parse_context_t* ctx,
/* if it's an abstract representation of an inline function, there should be
* a concrete object that we'll handle
*/
if (dwarf2_find_attribute(ctx, di, DW_AT_inline, &inline_flags))
if (dwarf2_find_attribute(ctx, di, DW_AT_inline, &inline_flags) &&
inline_flags.u.uvalue != DW_INL_not_inlined)
{
TRACE("Function %s declared as inlined (%ld)... skipping\n",
name.u.string ? name.u.string : "(null)", inline_flags.u.uvalue);

View File

@ -475,3 +475,8 @@ enum dwarf_call_frame_info
#define DW_EH_PE_aligned 0x50
#define DW_EH_PE_indirect 0x80
#define DW_EH_PE_omit 0xff
#define DW_INL_not_inlined 0x00
#define DW_INL_inlined 0x01
#define DW_INL_declared_not_inlined 0x02
#define DW_INL_declared_inlined 0x03