Skip to content
Snippets Groups Projects
Commit 0c474b9f authored by eric pouech's avatar eric pouech Committed by Alexandre Julliard
Browse files

winedbg: When enumerating symbols, only search for locals when name doesn't refer to a module.


Fixed listing twice the same symbol in some commands like 'break foo!bar'.

Signed-off-by: default avatarEric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 4448ef50
No related branches found
No related tags found
No related merge requests found
......@@ -421,7 +421,7 @@ enum sym_get_lval symbol_get_lvalue(const char* name, const int lineno,
SymSetExtendedOption(SYMOPT_EX_WINE_NATIVE_MODULES, opt);
/* now grab local symbols */
if ((frm = stack_get_curr_frame()) && sgv.num < NUMDBGV)
if ((frm = stack_get_curr_frame()) && sgv.num < NUMDBGV && !strchr(name, '!'))
{
sgv.frame_offset = frm->linear_frame;
SymEnumSymbols(dbg_curr_process->handle, 0, name, sgv_cb, (void*)&sgv);
......
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