Bug #9726 2006-12-15 03:58

bygreen

wrong line number report when debuging.

i use this package:
Code::Blocks IDE, with MINGW compiler
Filesize: 13,597,181 Bytes | Version: 1.0rc2
MD5 Hash: 7638bdd4fd087b3168be4f0f968d1f3c 

the source code is:
#include <stdio.h>
#include <stdlib.h>

int main()
{

    int i=0;

    int t;

    t=i;
        printf("Hello world!\n");
        return 0;
}

when i debug it, the report message is:
Selecting target: default
Compiling: done
Starting debugger: done
Adding source dir: C:\Documents and Settings\green.sui\My Documents\test\
Adding file: C:\Documents and Settings\green\My Documents\test\console.exe
Line number 14 out of range; main.c has 1 lines.
error
Line number 16 out of range; main.c has 1 lines.
error
exited 0
Debugger finished with status 0

another operation is that i have change the editor's font. maybe it has the releation with this mistake.

Category
Debugger
Group
 
Status
Closed
Close date
2007-02-04 17:34
Assigned to
 
artoj 2007-01-17 15:06

Try using one of the latest nightly builds, this problem has been fixed already.

artoj 2007-02-04 17:34

Closing as this is fixed already in SVN. Thank you for the bug report.