Breakpoint attributes

Niko Sams niko.sams at gmail.com
Sat Jun 13 16:46:13 UTC 2009


On Sat, Jun 13, 2009 at 12:40, Vladimir Prus<ghost at cs.msu.su> wrote:
>
> In SVN HEAD, if I create a code breakpoint on function, say main, it's
> not saved/loaded for next session -- the 'location' field in breakpoint
> table becomes empty. I've tried to fix that, but got somewhat lost.
>
> The Breakpoint class has three fields:
>
>        - m_url
>        - m_expression
>        - address_
>
> It appears that all of them correspond to the 'location' column in
> breakpoint table. Do we need 3 different fields? Especially given
> that all of those are to be interpreted by the debugger, and may
> have random structure?
address_ isn't used i guess.
I added m_url and m_expression as separate members because the
breakpoints with m_url are shown in the editor, others not.
I found the api much clearer when I can use url() and line() directly instead
of parsing the expression every time.

Niko




More information about the KDevelop-devel mailing list