Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] catchpoints

For the moment the best workflow that we have is the "try and fail" approach.  You can try, but it may fail :-)  Because of the shared breakpoint model in Eclipse, it would be very difficult to completely eliminate the "try and fail" workflow, though UI hinting and good error reporting can make it more user friendly than it sounds. 

As for GDB, I would just suggest a mechanism for querying breakpoint capabilities. This would at least allow the UI to provide hints to the user when a debug session is active.

Daniel Jacobowitz wrote:
On Tue, Apr 08, 2008 at 09:28:39AM -0700, Pawel Piech wrote:
  
   Plus, there is another feature of CDT breakpoints which allows them to
   have target-specific attributes.  See bug 211533.  I don't know if you
   will be able to use it directly for catchpoints, because they will require
   entirely new breakpoint types, but it may give you ideas for design.  In
   general, I think this is a very difficult problem (enabling breakpoint
   creation actions based on context), because breakpoints can be created
   before a debug session is active.  A rather simple solution may be to
   create a new command set for these new breakpoint actions and have this
   command set disabled by default.
    
Yes, this is hard.  GDB has the same problem: for instance, some kinds
of watchpoints and catchpoints can be created once the program is
running, but not before it runs.  Before we know what target we
will connect to, we don't know what breakpoint types will be
supported.

If you come up with a clever solution to this let me know and we can
smarten up GDB too :-)

  


Back to the top