octave-maintainers
[Top][All Lists]
Advanced

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

Re: Breakpoint woes


From: John W. Eaton
Subject: Re: Breakpoint woes
Date: Tue, 5 May 2009 15:13:31 -0400

On 30-Apr-2009, John Swensen wrote:

| On Apr 27, 2009, at 8:59 PM, John W. Eaton wrote:
| 
| >
| > | Any suggestion on where to look next? I suppose this is "good  
| > enough"
| > | and I can issue the rl_done from my IDE to force directory changes  
| > to
| > | affect breakpoints immediately, but it would be nice if I could  
| > figure
| > | out what is being called after each iteration of the readline loop
| > | that causes these things to be updated.
| >
| > Exactly what is it that you are trying to update/get the status of?
| > Whatever the problem is, I'd guess that setting rl_done is the best
| > thing to do.
| 
| I am trying to have the IDE detect that a breakpoint is no longer  
| valid after changing directories through the IDE.  The problem lies in  
| the fact that, as you described, the breakpoint status isn't even  
| updated in Octave itself until a later time.  This isn't a huge  
| problem, just an annoyance that bugs me in Matlab and I wanted to fix.
| 
| Attached is the patch converting the std::map to a std::set in the  
| bptable class.  It seems to work much better and I have tried  
| everything I new to make it crash before and it has no problems.

Thanks.  I applied this changeset with a few additional changes and a
ChangeLog entry.

We should consider changing the name of the bp_table class to be
something else like "breakpoints".  Also, we have bp_set and bp_list,
which seems confusing, and intmap is not a very helpful name either.
So don't be too surprised if these change...

jwe


reply via email to

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