< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/share/jdi/ArgumentHandler.java

Print this page
rev 59383 : [mq]: final
   1 /*
   2  * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


 503  * The following information is used by the <code>ArgumentHandler</code>
 504  * for resolving features (i.e., JDI connectors and transport names)
 505  * which are not implemented on given platform (the first column).
 506  * This list is actual for JDK 1.3.x, 1.4.x, 1.5.0, 1.6.0.
 507  *
 508  * @see ArgumentHandler
 509  */
 510 class CheckedFeatures {
 511 
 512     static final String[][] notImplemented = {
 513 
 514             // attaching connectors
 515         /*
 516          * From docs/technotes/guides/jpda/conninv.html:
 517          * "
 518          *  This connector can be used by a debugger application to attach to
 519          *  a currently running target VM through the shared memory transport. It is
 520          *  available only on the Microsoft Windows platform.
 521          *  "
 522          */
 523         {"solaris-sparc",   "com.sun.jdi.SharedMemoryAttach"},
 524         {"solaris-sparcv9", "com.sun.jdi.SharedMemoryAttach"},
 525         {"solaris-i586",    "com.sun.jdi.SharedMemoryAttach"},
 526         {"solaris-amd64",   "com.sun.jdi.SharedMemoryAttach"},
 527         {"solaris-x64",     "com.sun.jdi.SharedMemoryAttach"},
 528         {"linux-i586",      "com.sun.jdi.SharedMemoryAttach"},
 529         {"linux-ia64",      "com.sun.jdi.SharedMemoryAttach"},
 530         {"linux-amd64",     "com.sun.jdi.SharedMemoryAttach"},
 531         {"linux-x64",       "com.sun.jdi.SharedMemoryAttach"},
 532         {"linux-sparc",     "com.sun.jdi.SharedMemoryAttach"},
 533         {"linux-sparcv9",   "com.sun.jdi.SharedMemoryAttach"},
 534         {"linux-aarch64",   "com.sun.jdi.SharedMemoryAttach"},
 535         {"linux-arm",       "com.sun.jdi.SharedMemoryAttach"},
 536         {"linux-ppc64",     "com.sun.jdi.SharedMemoryAttach"},
 537         {"linux-ppc64le",   "com.sun.jdi.SharedMemoryAttach"},
 538         {"linux-s390x",     "com.sun.jdi.SharedMemoryAttach"},
 539         {"macosx-amd64",    "com.sun.jdi.SharedMemoryAttach"},
 540         {"mac-x64",         "com.sun.jdi.SharedMemoryAttach"},
 541         {"aix-ppc64",       "com.sun.jdi.SharedMemoryAttach"},
 542 
 543             // listening connectors
 544         /*
 545          * From docs/technotes/guides/jpda/conninv.html:
 546          * "
 547          *  This connector can be used by a debugger application to accept a
 548          *  connection from  a separately invoked target VM through the shared memory
 549          *  transport.
 550          *  It is available only on the Microsoft Windows platform.
 551          *  "
 552          */
 553         {"solaris-sparc",   "com.sun.jdi.SharedMemoryListen"},
 554         {"solaris-sparcv9", "com.sun.jdi.SharedMemoryListen"},
 555         {"solaris-i586",    "com.sun.jdi.SharedMemoryListen"},
 556         {"solaris-amd64",   "com.sun.jdi.SharedMemoryListen"},
 557         {"solaris-x64",     "com.sun.jdi.SharedMemoryListen"},
 558         {"linux-i586",      "com.sun.jdi.SharedMemoryListen"},
 559         {"linux-ia64",      "com.sun.jdi.SharedMemoryListen"},
 560         {"linux-amd64",     "com.sun.jdi.SharedMemoryListen"},
 561         {"linux-x64",       "com.sun.jdi.SharedMemoryListen"},
 562         {"linux-sparc",     "com.sun.jdi.SharedMemoryListen"},
 563         {"linux-sparcv9",   "com.sun.jdi.SharedMemoryListen"},
 564         {"linux-aarch64",   "com.sun.jdi.SharedMemoryListen"},
 565         {"linux-arm",       "com.sun.jdi.SharedMemoryListen"},
 566         {"linux-ppc64",     "com.sun.jdi.SharedMemoryListen"},
 567         {"linux-ppc64le",   "com.sun.jdi.SharedMemoryListen"},
 568         {"linux-s390x",     "com.sun.jdi.SharedMemoryListen"},
 569         {"macosx-amd64",    "com.sun.jdi.SharedMemoryListen"},
 570         {"mac-x64",         "com.sun.jdi.SharedMemoryListen"},
 571         {"aix-ppc64",       "com.sun.jdi.SharedMemoryListen"},
 572 
 573             // launching connectors
 574         /*
 575          * From docs/technotes/guides/jpda/conninv.html:
 576          * "
 577          *  Sun Command Line Launching Connector
 578          *  This connector can be used by a debugger application to launch a
 579          *  Sun VM or any other VM which supports the same invocation options with
 580          *  respect to debugging. The details of launching the VM and specifying the
 581          *  necessary debug options are handled by the connector. The underlying
 582          *  transport used by this connector depends on the platform. On Microsoft
 583          *  Windows, the shared memory transport is used. On Solaris and Linux the
 584          *  socket transport is used.
 585          * "
 586          */
 587         {"solaris-sparc",   "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 588         {"solaris-sparc",   "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 589 
 590         {"solaris-sparcv9", "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 591         {"solaris-sparcv9", "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 592 
 593         {"solaris-i586",    "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 594         {"solaris-i586",    "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 595 
 596         {"solaris-amd64",   "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 597         {"solaris-amd64",   "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 598 
 599         {"solaris-x64",     "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 600         {"solaris-x64",     "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 601 
 602         {"linux-i586",      "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 603         {"linux-i586",      "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 604 
 605         {"linux-ia64",      "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 606         {"linux-ia64",      "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 607 
 608         {"linux-amd64",     "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 609         {"linux-amd64",     "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 610 
 611         {"linux-x64",       "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 612         {"linux-x64",       "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 613 
 614         {"linux-sparc",     "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 615         {"linux-sparc",     "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 616 
 617         {"linux-sparcv9",   "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 618         {"linux-sparcv9",   "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 619 
 620         {"linux-aarch64",   "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 621         {"linux-aarch64",   "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 622 
 623         {"linux-arm",       "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 624         {"linux-arm",       "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 625 
 626         {"linux-ppc64",     "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 627         {"linux-ppc64",     "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 628 
 629         {"linux-ppc64le",   "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 630         {"linux-ppc64le",   "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 631 
 632         {"linux-s390x",     "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 633         {"linux-s390x",     "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 634 
 635         {"windows-i586",    "com.sun.jdi.CommandLineLaunch", "dt_socket"},
 636         {"windows-i586",    "com.sun.jdi.RawCommandLineLaunch", "dt_socket"},
 637 
 638         {"windows-ia64",    "com.sun.jdi.CommandLineLaunch", "dt_socket"},
 639         {"windows-ia64",    "com.sun.jdi.RawCommandLineLaunch", "dt_socket"},
 640 
 641         {"windows-amd64",   "com.sun.jdi.CommandLineLaunch", "dt_socket"},
 642         {"windows-amd64",   "com.sun.jdi.RawCommandLineLaunch", "dt_socket"},
 643 
 644         {"windows-x64",     "com.sun.jdi.CommandLineLaunch", "dt_socket"},
 645         {"windows-x64",     "com.sun.jdi.RawCommandLineLaunch", "dt_socket"},
 646 
 647         {"macosx-amd64",     "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 648         {"macosx-amd64",     "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 649 
 650         {"mac-x64",         "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 651         {"mac-x64",         "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 652 
 653         {"aix-ppc64",       "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 654         {"aix-ppc64",       "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 655 
 656         // shared memory transport is implemented only on windows platform
 657         {"solaris-sparc",   "dt_shmem"},
 658         {"solaris-sparcv9", "dt_shmem"},
 659         {"solaris-i586",    "dt_shmem"},
 660         {"solaris-amd64",   "dt_shmem"},
 661         {"solaris-x64",     "dt_shmem"},
 662         {"linux-i586",      "dt_shmem"},
 663         {"linux-ia64",      "dt_shmem"},
 664         {"linux-amd64",     "dt_shmem"},
 665         {"linux-x64",       "dt_shmem"},
 666         {"linux-sparc",     "dt_shmem"},
 667         {"linux-sparcv9",   "dt_shmem"},
 668         {"linux-aarch64",   "dt_shmem"},
 669         {"linux-arm",       "dt_shmem"},
 670         {"linux-ppc64",     "dt_shmem"},
 671         {"linux-ppc64le",   "dt_shmem"},
 672         {"linux-s390x",     "dt_shmem"},
 673         {"macosx-amd64",    "dt_shmem"},
 674         {"mac-x64",         "dt_shmem"},
 675         {"aix-ppc64",       "dt_shmem"},
 676     };
 677 }
   1 /*
   2  * Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


 503  * The following information is used by the <code>ArgumentHandler</code>
 504  * for resolving features (i.e., JDI connectors and transport names)
 505  * which are not implemented on given platform (the first column).
 506  * This list is actual for JDK 1.3.x, 1.4.x, 1.5.0, 1.6.0.
 507  *
 508  * @see ArgumentHandler
 509  */
 510 class CheckedFeatures {
 511 
 512     static final String[][] notImplemented = {
 513 
 514             // attaching connectors
 515         /*
 516          * From docs/technotes/guides/jpda/conninv.html:
 517          * "
 518          *  This connector can be used by a debugger application to attach to
 519          *  a currently running target VM through the shared memory transport. It is
 520          *  available only on the Microsoft Windows platform.
 521          *  "
 522          */





 523         {"linux-i586",      "com.sun.jdi.SharedMemoryAttach"},
 524         {"linux-ia64",      "com.sun.jdi.SharedMemoryAttach"},
 525         {"linux-amd64",     "com.sun.jdi.SharedMemoryAttach"},
 526         {"linux-x64",       "com.sun.jdi.SharedMemoryAttach"},


 527         {"linux-aarch64",   "com.sun.jdi.SharedMemoryAttach"},
 528         {"linux-arm",       "com.sun.jdi.SharedMemoryAttach"},
 529         {"linux-ppc64",     "com.sun.jdi.SharedMemoryAttach"},
 530         {"linux-ppc64le",   "com.sun.jdi.SharedMemoryAttach"},
 531         {"linux-s390x",     "com.sun.jdi.SharedMemoryAttach"},
 532         {"macosx-amd64",    "com.sun.jdi.SharedMemoryAttach"},
 533         {"mac-x64",         "com.sun.jdi.SharedMemoryAttach"},
 534         {"aix-ppc64",       "com.sun.jdi.SharedMemoryAttach"},
 535 
 536             // listening connectors
 537         /*
 538          * From docs/technotes/guides/jpda/conninv.html:
 539          * "
 540          *  This connector can be used by a debugger application to accept a
 541          *  connection from  a separately invoked target VM through the shared memory
 542          *  transport.
 543          *  It is available only on the Microsoft Windows platform.
 544          *  "
 545          */





 546         {"linux-i586",      "com.sun.jdi.SharedMemoryListen"},
 547         {"linux-ia64",      "com.sun.jdi.SharedMemoryListen"},
 548         {"linux-amd64",     "com.sun.jdi.SharedMemoryListen"},
 549         {"linux-x64",       "com.sun.jdi.SharedMemoryListen"},


 550         {"linux-aarch64",   "com.sun.jdi.SharedMemoryListen"},
 551         {"linux-arm",       "com.sun.jdi.SharedMemoryListen"},
 552         {"linux-ppc64",     "com.sun.jdi.SharedMemoryListen"},
 553         {"linux-ppc64le",   "com.sun.jdi.SharedMemoryListen"},
 554         {"linux-s390x",     "com.sun.jdi.SharedMemoryListen"},
 555         {"macosx-amd64",    "com.sun.jdi.SharedMemoryListen"},
 556         {"mac-x64",         "com.sun.jdi.SharedMemoryListen"},
 557         {"aix-ppc64",       "com.sun.jdi.SharedMemoryListen"},
 558 
 559             // launching connectors
 560         /*
 561          * From docs/technotes/guides/jpda/conninv.html:
 562          * "
 563          *  Sun Command Line Launching Connector
 564          *  This connector can be used by a debugger application to launch a
 565          *  Sun VM or any other VM which supports the same invocation options with
 566          *  respect to debugging. The details of launching the VM and specifying the
 567          *  necessary debug options are handled by the connector. The underlying
 568          *  transport used by this connector depends on the platform. On Microsoft
 569          *  Windows, the shared memory transport is used. On Linux the socket transport is used.

 570          * "
 571          */















 572         {"linux-i586",      "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 573         {"linux-i586",      "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 574 
 575         {"linux-ia64",      "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 576         {"linux-ia64",      "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 577 
 578         {"linux-amd64",     "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 579         {"linux-amd64",     "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 580 
 581         {"linux-x64",       "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 582         {"linux-x64",       "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 583 






 584         {"linux-aarch64",   "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 585         {"linux-aarch64",   "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 586 
 587         {"linux-arm",       "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 588         {"linux-arm",       "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 589 
 590         {"linux-ppc64",     "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 591         {"linux-ppc64",     "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 592 
 593         {"linux-ppc64le",   "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 594         {"linux-ppc64le",   "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 595 
 596         {"linux-s390x",     "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 597         {"linux-s390x",     "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 598 
 599         {"windows-i586",    "com.sun.jdi.CommandLineLaunch", "dt_socket"},
 600         {"windows-i586",    "com.sun.jdi.RawCommandLineLaunch", "dt_socket"},
 601 
 602         {"windows-ia64",    "com.sun.jdi.CommandLineLaunch", "dt_socket"},
 603         {"windows-ia64",    "com.sun.jdi.RawCommandLineLaunch", "dt_socket"},
 604 
 605         {"windows-amd64",   "com.sun.jdi.CommandLineLaunch", "dt_socket"},
 606         {"windows-amd64",   "com.sun.jdi.RawCommandLineLaunch", "dt_socket"},
 607 
 608         {"windows-x64",     "com.sun.jdi.CommandLineLaunch", "dt_socket"},
 609         {"windows-x64",     "com.sun.jdi.RawCommandLineLaunch", "dt_socket"},
 610 
 611         {"macosx-amd64",     "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 612         {"macosx-amd64",     "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 613 
 614         {"mac-x64",         "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 615         {"mac-x64",         "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 616 
 617         {"aix-ppc64",       "com.sun.jdi.CommandLineLaunch", "dt_shmem"},
 618         {"aix-ppc64",       "com.sun.jdi.RawCommandLineLaunch", "dt_shmem"},
 619 
 620         // shared memory transport is implemented only on windows platform





 621         {"linux-i586",      "dt_shmem"},
 622         {"linux-ia64",      "dt_shmem"},
 623         {"linux-amd64",     "dt_shmem"},
 624         {"linux-x64",       "dt_shmem"},


 625         {"linux-aarch64",   "dt_shmem"},
 626         {"linux-arm",       "dt_shmem"},
 627         {"linux-ppc64",     "dt_shmem"},
 628         {"linux-ppc64le",   "dt_shmem"},
 629         {"linux-s390x",     "dt_shmem"},
 630         {"macosx-amd64",    "dt_shmem"},
 631         {"mac-x64",         "dt_shmem"},
 632         {"aix-ppc64",       "dt_shmem"},
 633     };
 634 }
< prev index next >