#1459 Listing File - C file comment is incorrect

closed-fixed
5
2013-05-25
2008-05-13
Serge Malo
No

SDCC command: sdcc --debug lst_problem_example.c
SDCC version 2.8.0, under Windows XP.

The problem is inside the listing (.lst and .rst) files generated.
When compiling the included example (lst_problem_example.c), the C lines comment inside the listing file seems incorrect.

Inside the listing file, we see the same C line comment twice, like this:
159 ; lst_problem_example.c:22: l_uiCounter = 0;
171 ; lst_problem_example.c:22: l_uiCounter = 0;

In my opinion, line 171 is correct. But the line 159 should have had the next comment:
159 ; lst_problem_example.c:14: if (P1_4 == 0)

Also, note that the .cdb has no reference to the C line number #14. This might be related to the same problem.

Discussion

  • Serge Malo

    Serge Malo - 2008-05-13

    Source file reproducing the bug

     
  • Borut Ražem

    Borut Ražem - 2008-08-24
    • labels: --> C-Front End
    • milestone: --> fixed
    • assigned_to: nobody --> borutr
    • status: open --> open-accepted
     
  • Borut Ražem

    Borut Ražem - 2008-08-24

    Logged In: YES
    user_id=568035
    Originator: NO

    Parch applied in svn revision #5219.

    Serge, can you be more specific about .cdb issue? How the missing reference should look like? I'm not an expert in .cdb format :-(

    Borut

     
  • Serge Malo

    Serge Malo - 2008-09-03

    Logged In: YES
    user_id=2082376
    Originator: YES

    In the .cdb file, I think that we should see this line (C-Line Record):
    L:C$lst_problem_example.c$14$3$3:7A

    It should be written right after the line
    L:A$lst_problem_example$160:7A

    Thanks,
    Serge

     
  • Maarten Brock

    Maarten Brock - 2009-02-19

    Borut,

    Is this fixed as you set it? If so, in which revision and why is this not closed then?
    If not, then please remove the fixed Group setting.

    And what does Resolution Accepted mean here for you?

    Maarten

     
  • Borut Ražem

    Borut Ražem - 2009-02-22

    The first part is fixed, the second (.cdb reference) is not, so I left it opened.

    Borut

     
  • Maarten Brock

    Maarten Brock - 2011-03-26

    I don't know when it was fixed, but SDCC 3.0.2 #6360 outputs the correct line in the .cdb file.

     
  • Maarten Brock

    Maarten Brock - 2011-03-26
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks