aboutsummaryrefslogtreecommitdiff
path: root/sim/frv
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-19 20:13:22 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-21 20:16:26 -0500
commit6003fe166df2cd80030ae4a228ac105ae13f477e (patch)
tree9d50df58ef62f89ed1f1ad1b9326f10a8c07c333 /sim/frv
parentc0e97c852595b9516d54688643c08918a446f36c (diff)
downloadgdb-6003fe166df2cd80030ae4a228ac105ae13f477e.zip
gdb-6003fe166df2cd80030ae4a228ac105ae13f477e.tar.gz
gdb-6003fe166df2cd80030ae4a228ac105ae13f477e.tar.bz2
sim: mloop: add #line pragmas everywhere
This will make compiler diagnostics much better with generated code so people can understand the original source file.
Diffstat (limited to 'sim/frv')
-rw-r--r--sim/frv/mloop.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/frv/mloop.in b/sim/frv/mloop.in
index dc77f06..9429bf0 100644
--- a/sim/frv/mloop.in
+++ b/sim/frv/mloop.in
@@ -39,6 +39,7 @@ case "x$1" in
xsupport)
cat <<EOF
+#line $LINENO "$0"
static INLINE const IDESC *
extract (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn, ARGBUF *abuf,
@@ -411,6 +412,7 @@ EOF
xinit)
cat <<EOF
+#line $LINENO "$0"
/*xxxinit*/
/* If the timer is enabled, then we will enable model profiling during
execution. This is because the timer needs accurate cycles counts to
@@ -428,6 +430,7 @@ xextract-simple | xextract-scache)
# SET_LAST_INSN_P(last_p) called to indicate whether insn is last one
cat <<EOF
+#line $LINENO "$0"
{
CGEN_INSN_INT insn = frvbf_read_imem_USI (current_cpu, vpc);
extract (current_cpu, vpc, insn, SEM_ARGBUF (sc), FAST_P);
@@ -449,6 +452,7 @@ xfull-exec-* | xfast-exec-*)
# scache lookup.
cat <<EOF
+#line $LINENO "$0"
{
FRV_VLIW *vliw;
int first_insn_p = 1;