Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1239244

fp.bugs 3473 jdb next does not clear temporary breakpoint

    XMLWordPrintable

Details

    • 1.0.2
    • sparc
    • solaris_2.5
    • Not verified

    Backports

      Description

        >From: Jean-Paul Buu-Sao <###@###.###>
        This does not look like form output to me.


        1. OS
        WinNT 3.51 - Windows 95

        2. VERSION
        JDK 1.0

        3. DESCRIPTION
        The actual implementation for next (step over a statement) is to set a
        "one-shot" breakpoint which clears itself from breakpoint list when hit.
        The bug is that those "one-shot" breakpoints are in fact regular ones
        and thus don't clear themself. They stay around.

        4. STEPS TO REPRODUCE

        Given test6.java:

                public class test6
                {
                  public static void main( String argv[] )
                  {
                    int j = 0;
                    for( int i = 0; i < 8; i++ )
                    {
                      j++;
                      j++;
                      j++;
                      j++;
                    }
                  }
                }

        Session log:

        C:\\tests>jdb test6
        Initializing jdb...
        0x1045510:class(test6)
        > stop at test6:8
        Breakpoint set at test6:8
        > run
        run test6
        running ...
        main[1]
        Breakpoint hit: test6.main (test6:8) << OK: REGULAR BKPT REACHED
        main[1] next
        main[1]
        Breakpoint hit: test6.main (test6:9) << OK: ONE-SHOT BKPT REACHED
        main[1] cont
        main[1]
        Breakpoint hit: test6.main (test6:8) << OK: REGULAR BKPT REACHED
        main[1] cont
        main[1]
        Breakpoint hit: test6.main (test6:9) << NO: ONE-SHOT STILL AROUND
        main[1]

        5. NOTES

        A fix (BreakpointHandler.java) has been sent to Thomas Ball seperately.



        Attachments

          Issue Links

            Activity

              People

                tballsunw Tom Ball (Inactive)
                bhagen Benjamin Hagen (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: