Community
Participate
Working Groups
"Toggle Method Breakpoint" action from the global "Run" menu and "Toggle Breakpoint" action from the Outline view's context menu don't delete an existing method tracepoint. Instead a new tracepoint is created. The reason is that CDIDebugModel.functionBreakpointExists() checks whether the tracepoint's marker type is equal to CFunctionBreakpoint.getMarkerType(). Because a method tracepoint has a different marker type this condition always fails. I don't remember why this condition was added originally, but the similar condition was removed for line breakpoints to fix https://bugs.eclipse.org/bugs/show_bug.cgi?id=72555.
Did you also notice that for DSF-GDB, method breakpoints/tracepoints are not being set on the method, but are being set in GDB as line bp/tp? I just noticed this. For some reason, both the line and the method name are set as attributes which makes the bp service use the line number before it checks for a method name. Should I open a separate bug?
(In reply to comment #1) > Did you also notice that for DSF-GDB, method breakpoints/tracepoints are not > being set on the method, but are being set in GDB as line bp/tp? > > I just noticed this. For some reason, both the line and the method name are > set as attributes which makes the bp service use the line number before it > checks for a method name. > As far as I know the line attribute is set to show the breakpoint in the editor. Can you check the breakpoint type before setting it? > Should I open a separate bug? I think it's better to open a separate bug.
(In reply to comment #2) > (In reply to comment #1) > > Did you also notice that for DSF-GDB, method breakpoints/tracepoints are not > > being set on the method, but are being set in GDB as line bp/tp? > > > > I just noticed this. For some reason, both the line and the method name are > > set as attributes which makes the bp service use the line number before it > > checks for a method name. > > > > As far as I know the line attribute is set to show the breakpoint in the > editor. Can you check the breakpoint type before setting it? > > > Should I open a separate bug? > > I think it's better to open a separate bug. I opened Bug 336888