mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 15:20:47 +00:00
winedbg: Let 'break symbol : line' command work again.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
parent
fe693a7047
commit
fd87ddfae7
|
@ -339,10 +339,19 @@ 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
|
||||
{
|
||||
/* 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");
|
||||
}
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* break_check_delayed_bp
|
||||
|
|
Loading…
Reference in a new issue