Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » My breakpoints are not used
My breakpoints are not used [message #778575] Fri, 13 January 2012 10:27 Go to next message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
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 11:47 Go to previous messageGo to next message
Abhijeet Shankargouda is currently offline Abhijeet ShankargoudaFriend
Messages: 40
Registered: January 2012
Member
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 14:39 Go to previous messageGo to next message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
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 09:39 Go to previous messageGo to next message
Abhijeet Shankargouda is currently offline Abhijeet ShankargoudaFriend
Messages: 40
Registered: January 2012
Member
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 09:58 Go to previous messageGo to next message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
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 10:14 Go to previous messageGo to next message
Abhijeet Shankargouda is currently offline Abhijeet ShankargoudaFriend
Messages: 40
Registered: January 2012
Member
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 10:15]

Report message to a moderator

Re: My breakpoints are not used [message #779682 is a reply to message #779681] Mon, 16 January 2012 10:18 Go to previous messageGo to next message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
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 10:26 Go to previous messageGo to next message
Abhijeet Shankargouda is currently offline Abhijeet ShankargoudaFriend
Messages: 40
Registered: January 2012
Member
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 10:28 Go to previous messageGo to next message
Abhijeet Shankargouda is currently offline Abhijeet ShankargoudaFriend
Messages: 40
Registered: January 2012
Member
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 12:50 Go to previous messageGo to next message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
Damned...
Re: My breakpoints are not used [message #780182 is a reply to message #779740] Tue, 17 January 2012 10:13 Go to previous messageGo to next message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
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 11:11 Go to previous messageGo to next message
Abhijeet Shankargouda is currently offline Abhijeet ShankargoudaFriend
Messages: 40
Registered: January 2012
Member
I guess problem seems complex
Re: My breakpoints are not used [message #780383 is a reply to message #780202] Tue, 17 January 2012 17:36 Go to previous message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
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: Fri Apr 26 02:22:44 GMT 2024

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

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

Back to the top