Skip to content
Snippets Groups Projects
Commit 686237e0 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard
Browse files

dbghelp: dwarf: Added support for function labels.

parent 6cee154b
No related branches found
No related tags found
No related merge requests found
......@@ -972,6 +972,22 @@ static void dwarf2_parse_subprogram_parameter(dwarf2_parse_context_t* ctx,
if (di->abbrev->have_child) FIXME("Unsupported children\n");
}
static void dwarf2_parse_subprogram_label(dwarf2_parse_context_t* ctx,
struct symt_function* func,
dwarf2_debug_info_t* di)
{
union attribute name;
union attribute low_pc;
TRACE("%s, for %s\n", dwarf2_debug_ctx(ctx), dwarf2_debug_di(di));
if (!dwarf2_find_attribute(di, DW_AT_low_pc, &low_pc)) low_pc.uvalue = 0;
dwarf2_find_name(ctx, di, &name, "label");
symt_add_function_point(ctx->module, func, SymTagLabel,
ctx->module->module.BaseOfImage + low_pc.uvalue, name.string);
}
static void dwarf2_parse_subprogram_block(dwarf2_parse_context_t* ctx,
dwarf2_debug_info_t* di,
struct symt_function* func);
......@@ -1015,6 +1031,11 @@ static void dwarf2_parse_inlined_subroutine(dwarf2_parse_context_t* ctx,
/* FIXME */
dwarf2_parse_inlined_subroutine(ctx, child);
break;
case DW_TAG_label:
/* FIXME
* dwarf2_parse_subprogram_label(ctx, func, child);
*/
break;
default:
FIXME("Unhandled Tag type 0x%lx at %s, for %s\n",
child->abbrev->tag, dwarf2_debug_ctx(ctx), dwarf2_debug_di(di));
......@@ -1131,6 +1152,9 @@ static struct symt* dwarf2_parse_subprogram(dwarf2_parse_context_t* ctx,
* skip it for now
*/
break;
case DW_TAG_label:
dwarf2_parse_subprogram_label(ctx, func, child);
break;
case DW_TAG_class_type:
case DW_TAG_structure_type:
case DW_TAG_union_type:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment