]> granicus.if.org Git - yasm/commitdiff
* nasm-bison.y: Enable dbgfmt directives from NASM parser. This allows e.g.
authorPeter Johnson <peter@tortall.net>
Tue, 25 Apr 2006 03:42:45 +0000 (03:42 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 25 Apr 2006 03:42:45 +0000 (03:42 -0000)
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

index dd8fea7f6109ac8d7ed6b9107be9a9d200c8a18a..c9fa7fd42c17fd4e1f9328bb8eb64efb71a92c17 100644 (file)
@@ -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);
     }