News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

No line xx in file occurs

Started by jinxin16897123, October 12, 2013, 09:35:26 AM

Previous topic - Next topic

jinxin16897123

the log told me that , No line 161 in file "main.cpp". but the line was actually exist.
Here is the log:


Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: e:\iWork\codeblocks\workspace\CRC8bit\
Adding source dir: e:\iWork\codeblocks\workspace\CRC8bit\
Adding file: e:\iWork\codeblocks\workspace\CRC8bit\bin\Debug\CRC8bit.exe
Changing directory to: e:/iWork/codeblocks/workspace/CRC8bit/.
Set variable: PATH=.;D:\Program Files\MinGWStudio\MinGW\bin;D:\Program Files\MinGWStudio\MinGW;E:\CodeSourcery\Sourcery_CodeBench_Lite_for_ARM_GNU_Linux\bin;D:\Program Files\ARM\bin\win_32-pentium;D:\Perl\site\bin;D:\Perl\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;D:\Program Files\ARM\RVCT\Programs\3.0\586\win_32-pentium;D:\Program Files\ARM\Utilities\FLEXlm\10.8.0\12\win_32-pentium;D:\Program Files\ARM\RVD\Core\3.0.1\309\win_32-pentium\bin;D:\Program Files\ATMEL Corporation\AT91-ISP v1.13\Library;D:\Program Files\ATMEL Corporation\AT91-ISP v1.13\sam-ba 2.9;D:\Banyan-UE;d:\Program Files\Microsoft Visual Studio 10.0\VC\bin;C:\Windows\System32\bin;C:\Windows\System32\System32;D:\Program Files\TortoiseGit\bin;E:\Python27;E:\Python27\Scripts;D:\Program Files\Wavecom\MuxConfTool

[debug]Command-line: gdb.exe -nx -fullname  -quiet -readnow -args e:/iWork/codeblocks/workspace/CRC8bit/bin/Debug/CRC8bit.exe
[debug]Working dir : e:\iWork\codeblocks\workspace\CRC8bit

Starting debugger: gdb.exe -nx -fullname  -quiet -readnow -args e:/iWork/codeblocks/workspace/CRC8bit/bin/Debug/CRC8bit.exe
done

[debug]> set prompt >>>>>>cb_gdb:

Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints

[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb 6.3
[debug]Copyright 2004 Free Software Foundation, Inc.
[debug]GDB is free software, covered by the GNU General Public License, and you are
[debug]welcome to change it and/or distribute copies of it under certain conditions.
[debug]Type "show copying" to see the conditions.
[debug]There is absolutely no warranty for GDB.  Type "show warranty" for details.
[debug]This GDB was configured as "i686-pc-mingw32".
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb 6.3

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set new-console on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> source E:\Codeblocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory e:/iWork/codeblocks/workspace/CRC8bit/
[debug]>>>>>>cb_gdb:
[debug]> break "e:/iWork/codeblocks/workspace/CRC8bit/main.cpp:161"
[debug]No line 161 in file "main.cpp".
[debug]>>>>>>cb_gdb:

No line 161 in file "main.cpp".

[debug]> run
[debug]Program exited normally.
[debug]>>>>>>cb_gdb:

Program exited normally.

[debug]> quit

Debugger finished with status 0

Jenna

Please use code-tags the next time you post log-output or sourcecode, it's much more readable !

For this time I edited your post.

oBFusCATed

Can you try newer GDB, 6.3 is extremely old. You'll need 7.x.x.

Also you might be affected by this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=12501 or something similar.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

jinxin16897123

To jens
   Sorry, I would correct that next time .

To oBFusCATed
   Thank you very much. the newer GDB solve this problem.