octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question concerning breakpoints (in C++)


From: John Swensen
Subject: Re: Question concerning breakpoints (in C++)
Date: Wed, 17 Oct 2007 22:36:33 -0400
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

John W. Eaton wrote:
On 12-Oct-2007, John Swensen wrote:

| There is a function in the tree_statement_list class called | list_breakpoints. It is used in debug.cc in the dbstatus() function, | but I have a few questions about it. In the statement tree, it appears | as if there is a list of breakpoints for each file. Then, my question | is whether the octave_value_list returned by | tree_statement_list::list_breakpoints() is just a list of breakpoints in | a single file?

It looks like it is.

| If so, it there a more overreaching function that gives | a (filename,linenumber) list of breakpoint in octave, or must one walk | the statement tree every time to ascertain all the breakpoints?

I'm not that familiar with the code that manages breakpoints, but it
seems that they are applied to a tree_statement_list object, so they
would only apply to a single function body.  I don't see that there is
any global list of breakpoints.  I'm also not sure that this is the
best data structure for managing breakpoints, so it may change in the
future.

jwe


When you say "I'm also not sure that this is the best data structure for managing breakpoints", were you referring to keeping the list of breakpoints in the tree_statement_list, or my proposal of keeping an alternate list of filenames and/or breakpoints. Maybe it would be possible to simply maintain a std::set of tree_statement_list objects for any file that contains at least one breakpoint? I guess I am kindof fishing here, but in order to start adding good debugging capabilities to my IDE, I want to start working on either adding to or improving the debugging system.

John Swensen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]