diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 20:11:34 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 20:17:38 -0500 |
commit | 06bc778c13c8511ba8bc4c061dd59270c1a5e07c (patch) | |
tree | 080f94bb6a62b6a06f7c522fcda1e49ca25a3166 /sim | |
parent | 6003fe166df2cd80030ae4a228ac105ae13f477e (diff) | |
download | gdb-06bc778c13c8511ba8bc4c061dd59270c1a5e07c.zip gdb-06bc778c13c8511ba8bc4c061dd59270c1a5e07c.tar.gz gdb-06bc778c13c8511ba8bc4c061dd59270c1a5e07c.tar.bz2 |
sim: m32c: fix initial #line number in generated code
This emits #line 2 for the first line in the output when it should be 1.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/m32c/opc2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m32c/opc2c.c b/sim/m32c/opc2c.c index da4da1c..113e390 100644 --- a/sim/m32c/opc2c.c +++ b/sim/m32c/opc2c.c @@ -282,7 +282,7 @@ dump_lines (opcode * op, int level, Indirect * ind) varnames[i], (i < vn - 1) ? "," : "\\n", varnames[i]); printf ("%*s }\n", level, ""); } - printf ("#line %d \"%s\"\n", op->lineno + 1, orig_filename); + printf ("#line %d \"%s\"\n", op->lineno, orig_filename); for (i = 0; i < op->nlines; i++) printf ("%*s%s", level, "", op->lines[i]); if (op->comment) |