Commit 6d49f958 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: More precisely manage the inline attribute.

parent 0816d8f4
...@@ -1764,7 +1764,8 @@ static struct symt* dwarf2_parse_subprogram(dwarf2_parse_context_t* ctx, ...@@ -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 /* if it's an abstract representation of an inline function, there should be
* a concrete object that we'll handle * 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", TRACE("Function %s declared as inlined (%ld)... skipping\n",
name.u.string ? name.u.string : "(null)", inline_flags.u.uvalue); name.u.string ? name.u.string : "(null)", inline_flags.u.uvalue);
......
...@@ -475,3 +475,8 @@ enum dwarf_call_frame_info ...@@ -475,3 +475,8 @@ enum dwarf_call_frame_info
#define DW_EH_PE_aligned 0x50 #define DW_EH_PE_aligned 0x50
#define DW_EH_PE_indirect 0x80 #define DW_EH_PE_indirect 0x80
#define DW_EH_PE_omit 0xff #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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment