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

TTY: 'thread' command should accept thread name if it is unique

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 10
    • 5.0
    • core-svc
    • None
    • generic
    • generic

      Name: tb29552 Date: 02/19/2003


      jdb implements the 'thread <thread id>' command to allow you to set the
      default/current thread you are interested in debugging.

      > threads
      Group system:
        (java.lang.ref.Reference$ReferenceHandler)0x4 Reference Handler cond. waiting
        (java.lang.ref.Finalizer$FinalizerThread)0x3 Finalizer cond. waiting
        (java.lang.Thread)0x2 Signal Dispatcher cond. waiting
        (java.lang.Thread)0x1 CompileThread0 cond. waiting
      Group main:
        (java.lang.Thread)0x5 main cond. waiting


      > thread 0x5
      main[1]


      But you can't set it by thread name:

      > thread main
      "main" is not a valid thread id.


      It would save looking up and typing thread IDs if you could
      use a thread name. If the name is not unique, jdb could
      return an error prompting the user to supply an id.

      ======================================================================

            Unassigned Unassigned
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: