assemble: don't pass a NULL filename to dfmt->linenum

Don't pass a NULL filename to dfmt->linenum even if -Lb is in use; it
confuses the heck out of some debug backends.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2020-07-08 10:26:32 -07:00
parent 7501601dbd
commit f399172a83

View File

@ -424,7 +424,7 @@ static void out(struct out_data *data)
* changed, and the amount by which lineno changed,
* if it did. thus, these variables must be static
*/
if (src_get(&lineno, &lnfname))
if (src_get(&lineno, &lnfname) && lnfname)
dfmt->linenum(lnfname, lineno, data->segment);
if (asize > amax) {