Commit bd9ba7ec authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Fixed the symbol lookup so that it can really find _foo when looking for foo.

parent 84650ebb
...@@ -233,11 +233,7 @@ enum sym_get_lval symbol_get_lvalue(const char* name, const int lineno, ...@@ -233,11 +233,7 @@ enum sym_get_lval symbol_get_lvalue(const char* name, const int lineno,
* enumeration * enumeration
*/ */
SymSetOptions((opt = SymGetOptions()) | 0x40000000); SymSetOptions((opt = SymGetOptions()) | 0x40000000);
if (!SymEnumSymbols(dbg_curr_process->handle, 0, buffer, sgv_cb, (void*)&sgv)) SymEnumSymbols(dbg_curr_process->handle, 0, buffer, sgv_cb, (void*)&sgv);
{
SymSetOptions(opt);
return sglv_unknown;
}
if (!sgv.num && (name[0] != '_')) if (!sgv.num && (name[0] != '_'))
{ {
...@@ -255,11 +251,7 @@ enum sym_get_lval symbol_get_lvalue(const char* name, const int lineno, ...@@ -255,11 +251,7 @@ enum sym_get_lval symbol_get_lvalue(const char* name, const int lineno,
buffer[2] = '_'; buffer[2] = '_';
strcpy(&buffer[3], name); strcpy(&buffer[3], name);
} }
if (!SymEnumSymbols(dbg_curr_process->handle, 0, buffer, sgv_cb, (void*)&sgv)) SymEnumSymbols(dbg_curr_process->handle, 0, buffer, sgv_cb, (void*)&sgv);
{
SymSetOptions(opt);
return sglv_unknown;
}
} }
SymSetOptions(opt); SymSetOptions(opt);
......
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