Bugs item #2894927, was opened at 2009-11-10 01:13
Message generated for change (Tracker Item Submitted) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2894927&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: buildtools "stable"
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stefan Manegold (stmane)
Assigned to: Sjoerd Mullender (sjoerd)
Summary: Mx: @include does not write any "#line" directives

Initial Comment:
With "@include", Mx does not write any "#line# directives into the (C-) output 
file.

Consequently, tools like debuggers (e.g., gdb) or Coverity do point to 
incorrect source code lines for all .mx files that use @include (e.g., most of 
the C code of the M5 back-end).

A simple example:
========
$ cat x.mx
@f x
@c
x3
x4
@include y.mx
x6
x7
@include z.mx
x9
x10
@:zf@
x12
========
$ cat y.mx
y1
y2
========
$ cat z.mx
@= zf
z2
z3
@c
========
$ Mx -c x.mx
x.mx: ./x.c - not modified 
========
The incorrect output
--------
$ cat x.c

#line 3 "x.mx"
x3
x4
y1
y2
x6
x7


#line 10 "x.mx"
x9
x10

#line 10 "x.mx"
z2
z3


#line 12 "x.mx"

x12

========
Diff between incorrect (left) and correct/expected (right) output.
--------
$ diff -y -W30 x.c x.c.expected 

#line 3 "x.mx   #line 3 "x.mx
x3              x3
x4              x4
              > #line 1 "y.mx
y1              y1
y2              y2
              > #line 6 "x.mx
x6              x6
x7              x7


#line 10 "x.m | #line 9 "x.mx
x9              x9
x10             x10

#line 10 "x.m | #line 2 "z.mx
z2              z2
z3              z3


#line 12 "x.m | #line 11 "x.m

x12             x12

========

I tried to fix this, but turned out not to be familiar enough with the Mx code 
to do it "quickly".
Hence, this report to document the status until I (or someone else) manages to 
fix this.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2894927&group_id=56967

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to