Eric Pouech : dbghelp: More precisely manage the inline attribute.

Alexandre Julliard julliard at winehq.org
Wed Mar 9 11:12:49 CST 2011


Module: wine
Branch: master
Commit: 6d49f958de0de5665c3d9028d53652fa579027ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6d49f958de0de5665c3d9028d53652fa579027ea

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Tue Mar  8 21:30:42 2011 +0100

dbghelp: More precisely manage the inline attribute.

---

 dlls/dbghelp/dwarf.c |    3 ++-
 dlls/dbghelp/dwarf.h |    5 +++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 776031e..7299314 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -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);
diff --git a/dlls/dbghelp/dwarf.h b/dlls/dbghelp/dwarf.h
index 9864ecc..f0557be 100644
--- a/dlls/dbghelp/dwarf.h
+++ b/dlls/dbghelp/dwarf.h
@@ -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




More information about the wine-cvs mailing list