Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Breakpoint marker question

Hi Marc,

Breakpoint markers are used to persist the breakpoint attributes between
Eclipse sessions. Storing the current address for a function or a line
breakpoint is wrong because it can be different if the executable is
changed. The 'address' property is never used for line breakpoints (the
line and function breakpoint's addresses are retrieved from the
backend).
So the answer is No, they shouldn't. In fact, both 'function' and
'address' shouldn't have been added to cLineBreakpointMarker. But their
presence doesn't affect the implementation.

Cheers,
Mikhail
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Marc Khouzam
Sent: Thursday, November 12, 2009 8:39 PM
To: 'CDT General developers list.'
Subject: [cdt-dev] Breakpoint marker question

Hi,
 
I'm looking at the breakpoint markers in plugin.xml of
org.eclipse.cdt.debug.core.

The hierarchy is like this with attributes in parens:

     lineBreakpointMarker         breakpointMarker    
                    \                     |   
                     \             cBreakpointMarker (condition,
ignoreCount, threadId, installCount, sourceHandle, bpType) 
                      \                   |     
                       commonCLineBreakpointMarker
                      /       |                    \
cFunctionBreakpointMarker     |                cLineBreakpointMarker
(function, address)
                              |
                      cAddressBreakpointMarker   

What is strange is that the two attribute 'function' and 'address' are
with cLineBreakpointMarker.
Shouldn't they be with commonCLineBreakpointMarker intead, so that
cAddressBreakpointMarker  and cFunctionBreakpointMarker would inherit
them?

Thanks

P.S. I haven't figured out if these attributes are important or not...
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
-- 
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.


Back to the top