Commit 9768ea56 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp/dwarf: Bump max supported version (by default) up to 4.

parent 56969bc8
...@@ -2710,18 +2710,14 @@ static BOOL dwarf2_parse_compilation_unit_head(dwarf2_parse_context_t* ctx, ...@@ -2710,18 +2710,14 @@ static BOOL dwarf2_parse_compilation_unit_head(dwarf2_parse_context_t* ctx,
if (max_supported_dwarf_version == 0) if (max_supported_dwarf_version == 0)
{ {
char* env = getenv("DBGHELP_DWARF_VERSION"); char* env = getenv("DBGHELP_DWARF_VERSION");
LONG v = env ? atol(env) : 2; LONG v = env ? atol(env) : 4;
max_supported_dwarf_version = (v >= 2 && v <= 4) ? v : 2; max_supported_dwarf_version = (v >= 2 && v <= 4) ? v : 4;
} }
if (ctx->head.version < 2 || ctx->head.version > max_supported_dwarf_version) if (ctx->head.version < 2 || ctx->head.version > max_supported_dwarf_version)
{ {
if (max_supported_dwarf_version > 2) WARN("DWARF version %d isn't supported. Wine dbghelp only supports DWARF 2 up to %u.\n",
WARN("%u DWARF version unsupported. Wine dbghelp only support DWARF 2 up to %u.\n", ctx->head.version, max_supported_dwarf_version);
ctx->head.version, max_supported_dwarf_version);
else
WARN("%u DWARF version unsupported. Wine dbghelp only support DWARF 2.\n",
ctx->head.version);
return FALSE; return FALSE;
} }
......
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