This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Add NormalBreakpoint


Tom Tromey wrote:
"Keith" == Keith Seitz <keiths@redhat.com> writes:
>
Keith>  public class Breakpoint
Keith>  {
Keith> +  // Type of this breakpoint
Keith> +  protected int type;

What is this field intended for?
Right now it is only set to NormalBreakpoint.TYPE.

Right, the other new breakpoint type, ExecuteMethodBreakpoint will also set this. interpret-run.cc will then use Breakpoint.type() to figure out how to handle the breakpoint. Call me old fashioned, but I really dislike using instanceof. O:-)


Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]