mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
codeview.c: register all filenames
This essentially reverts 6503051dcc
since
that workaround is no longer needed thanks to support for multiple source
files
Signed-off-by: Jim Kukunas <james.t.kukunas@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
f8259c662a
commit
4de0e93677
@ -188,6 +188,8 @@ static void cv8_linenum(const char *filename, int32_t linenumber,
|
|||||||
struct linepair *li;
|
struct linepair *li;
|
||||||
struct source_file *file;
|
struct source_file *file;
|
||||||
|
|
||||||
|
file = register_file(filename);
|
||||||
|
|
||||||
s = find_section(segto);
|
s = find_section(segto);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
return;
|
return;
|
||||||
@ -195,8 +197,6 @@ static void cv8_linenum(const char *filename, int32_t linenumber,
|
|||||||
if ((s->flags & IMAGE_SCN_MEM_EXECUTE) == 0)
|
if ((s->flags & IMAGE_SCN_MEM_EXECUTE) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
file = register_file(filename);
|
|
||||||
|
|
||||||
li = saa_wstruct(file->lines);
|
li = saa_wstruct(file->lines);
|
||||||
li->file_offset = cv8_state.text_offset;
|
li->file_offset = cv8_state.text_offset;
|
||||||
li->linenumber = linenumber;
|
li->linenumber = linenumber;
|
||||||
|
Loading…
Reference in New Issue
Block a user