Can't set breakpoints in some files

Discussion to talk about software related topics only.
Post Reply
rsg
Posts: 54
Joined: Thu May 15, 2008 5:36 am

Can't set breakpoints in some files

Post by rsg »

Hi,

So, I can set breakpoints in some source files, but not in others. For those I cannot, I can step inside them, and view variables, etc., but I still cannot set breakpoints - in some functions. The left gutter in the NBEclipse (Rel23_rc7a) debugger view seems to be indicating this. When it has a dark hatched appearance, breakpoints cannot be set; when it is light gray, they can be set.

The attached image illustrates this. I've been using NBEclipse for 2-3 years now, and I don't recall ever seeing this before.


Of course, the magic question is this: how do I get NBEclipse to let me set breakpoints there? What am I doing wrong? In the image, the function with the disabled breakpoints is a constructor that I call explicitly, and again, I can step into it, so I know it hasn't been optimized away.

Any ideas?
-Bob
Attachments
Large blue text points to the two gutter styles
Large blue text points to the two gutter styles
NoBreakpoints.JPG (78.1 KiB) Viewed 3138 times
User avatar
tod
Posts: 587
Joined: Sat Apr 26, 2008 8:27 am
Location: Southern California
Contact:

Re: Can't set breakpoints in some files

Post by tod »

It's a result of how gcc compiles constructors. This blog entry
[url]http://vladimir_prus.blogspot.com/2007/11/breakpoints-in-constructors.html[/url]
has a reasonably detailed explanation.
rsg
Posts: 54
Joined: Thu May 15, 2008 5:36 am

Re: Can't set breakpoints in some files

Post by rsg »

I see - very interesting! Now that I know that, I can deal with it accordingly. Thanks for the explanation.
Post Reply