Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » My breakpoints are not used
My breakpoints are not used [message #778575] Fri, 13 January 2012 05:27 Go to next message
Eclipse UserFriend
Hello,

When I modify a source file, the program doesn't stop anymore at the breakpoints located in this source file. I have to do a make clean and recompile everything so that it does work again.
Re: My breakpoints are not used [message #778585 is a reply to message #778575] Fri, 13 January 2012 06:47 Go to previous messageGo to next message
Eclipse UserFriend
binary file is what build after your compile,it is the one which executes.When you modify your source file your editor cannot notify binary where the breakpoint is in binary(source file doesn't sync with the binary), so you need to sync you source file with binary file for breakpoints
Re: My breakpoints are not used [message #778621 is a reply to message #778585] Fri, 13 January 2012 09:39 Go to previous messageGo to next message
Eclipse UserFriend
Yes, but I compile again my modified file before debugging.
Re: My breakpoints are not used [message #779665 is a reply to message #778621] Mon, 16 January 2012 04:39 Go to previous messageGo to next message
Eclipse UserFriend
when you compile,Makefile just compiles the file which you have modified and even the binary of that file , but the problem is your other supporting files (other than source) are linked with your source file and which are not updated with its links , so when you make clean and build it , it will create a new binaries for all the files which completely syncs with your source and other files too..
Re: My breakpoints are not used [message #779675 is a reply to message #778575] Mon, 16 January 2012 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Actually, the problem seems more complicated.

I tested several releases of gdb, and it doesn't change anything.
I use distcc for compiling. The gcc versions are same, but the CentOS releases are different between my workstation and the distcc server.
I have no problems when compiling everything on my workstation.

I am still investigating...
Re: My breakpoints are not used [message #779681 is a reply to message #779675] Mon, 16 January 2012 05:14 Go to previous messageGo to next message
Eclipse UserFriend
If you are using distcc for local build it should always generate the same results, but if it is using several machines on network it will surely vary. I'm little less concern about different releases of CentOS from your workstation and distcc server because it doesn't going to make much difference on the result

[Updated on: Mon, 16 January 2012 05:15] by Moderator

Re: My breakpoints are not used [message #779682 is a reply to message #779681] Mon, 16 January 2012 05:18 Go to previous messageGo to next message
Eclipse UserFriend
Abhijeet Shankargouda wrote on Mon, 16 January 2012 11:14
If you are using distcc for local build it should always generate the same results, but if it is using several machines on network it will surely vary.

Why, if the gcc release is same ?
Re: My breakpoints are not used [message #779686 is a reply to message #779682] Mon, 16 January 2012 05:26 Go to previous messageGo to next message
Eclipse UserFriend
All machines on network must all have exactly the same compiler, headers and libraries installed, their clocks must be in sync, and typically that they must all have the same OS and CPU architecture, then it will produce same results all the time.
Re: My breakpoints are not used [message #779687 is a reply to message #779686] Mon, 16 January 2012 05:28 Go to previous messageGo to next message
Eclipse UserFriend
some programs which both call themselves "gcc 3.2.1" behave differently, presumably because of vendor patches or because vendors have shipped pre-release code.
Re: My breakpoints are not used [message #779740 is a reply to message #779687] Mon, 16 January 2012 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Damned...
Re: My breakpoints are not used [message #780182 is a reply to message #779740] Tue, 17 January 2012 05:13 Go to previous messageGo to next message
Eclipse UserFriend
I have changed the distcc server so that the OS distribution and gcc are same than the ones on my workstation. And I still have the problem.

I don't understand...
Re: My breakpoints are not used [message #780202 is a reply to message #780182] Tue, 17 January 2012 06:11 Go to previous messageGo to next message
Eclipse UserFriend
I guess problem seems complex
Re: My breakpoints are not used [message #780383 is a reply to message #780202] Tue, 17 January 2012 12:36 Go to previous message
Eclipse UserFriend
Here is what are the gdb messages in Eclipse CDT :

[color=red]No source file named foo.cpp.

Error in re-setting breakpoint 1: No line 127 in file "///////////////////////////////foo.cpp".

warning: Can not parse XML OS data; XML support was disabled at compile time[/color]
Previous Topic:Trouble compiling using Eclipse CDT with alternate toolchain
Next Topic:Problem occouring with the compiler (eclipse with cygwin)
Goto Forum:
  


Current Time: Sun Nov 02 16:08:21 EST 2025

Powered by FUDForum. Page generated in 0.04870 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top