From d479637782db9ce39a93313493218be4273ca992 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 25 Apr 2006 03:42:45 +0000 Subject: [PATCH] * nasm-bison.y: Enable dbgfmt directives from NASM parser. This allows e.g. loc and file DWARF2 directives to be accessed using [loc ...] and [file ...] just like .loc and .file work from the GAS parser. svn path=/trunk/yasm/; revision=1509 --- modules/parsers/nasm/nasm-bison.y | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/parsers/nasm/nasm-bison.y b/modules/parsers/nasm/nasm-bison.y index dd8fea7f..c9fa7fd4 100644 --- a/modules/parsers/nasm/nasm-bison.y +++ b/modules/parsers/nasm/nasm-bison.y @@ -656,8 +656,12 @@ nasm_parser_directive(yasm_parser_nasm *parser_nasm, const char *name, } else if (!yasm_arch_parse_directive(parser_nasm->arch, name, valparams, objext_valparams, parser_nasm->object, line)) { ; - } else if (yasm_objfmt_directive(parser_nasm->objfmt, name, valparams, - objext_valparams, line)) { + } else if (!yasm_objfmt_directive(parser_nasm->objfmt, name, valparams, + objext_valparams, line)) { + ; + } else if (yasm_dbgfmt_directive(parser_nasm->dbgfmt, name, + parser_nasm->cur_section, valparams, + line)) { yasm__error(line, N_("unrecognized directive [%s]"), name); } -- 2.40.0