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

winedbg: Let 'break symbol : line' command work again.

parent fe693a70
......@@ -340,8 +340,17 @@ void break_add_break_from_lineno(const char *filename, int lineno, BOOL swbp)
if (bkln.addr.Offset)
break_add_break(&bkln.addr, TRUE, swbp);
else
dbg_printf("Unknown line number\n"
"(either out of file, or no code at given line number)\n");
{
/* winedbg's lexer can't tell in 'break foo : 3' whether foo shall be interpreted
* as a debuggee symbol or as a debuggee source file.
* Try now symbol since source file failed.
*/
if (filename)
break_add_break_from_id(filename, lineno, swbp);
else
dbg_printf("Unknown line number\n"
"(either out of file, or no code at given line number)\n");
}
}
/***********************************************************************
......
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