* Added opt_shownativestub to show disassembled native stubs
authortwisti <none@none>
Wed, 22 Jun 2005 10:51:03 +0000 (10:51 +0000)
committertwisti <none@none>
Wed, 22 Jun 2005 10:51:03 +0000 (10:51 +0000)
src/cacao/cacao.c
src/vm/options.c
src/vm/options.h

index d0c08cc806f8382922c3e322d6596bb223b18134..fcf4c0c80c05a4790fef7bc8591ac57f6890ebc9 100644 (file)
@@ -37,7 +37,7 @@
      - Calling the class loader
      - Running the main method
 
-   $Id: cacao.c 2680 2005-06-14 17:14:08Z twisti $
+   $Id: cacao.c 2780 2005-06-22 10:51:03Z twisti $
 
 */
 
@@ -260,6 +260,7 @@ static void usage()
        printf("                 d(atasegment).. show data segment listing\n");
        printf("                 i(ntermediate). show intermediate representation\n");
        printf("                 m(ethods)...... show class fields and methods\n");
+       printf("                 n(ative)....... show disassembled native stubs\n");
        printf("                 u(tf) ......... show the utf - hash\n");
        printf("          -i     n ............. activate inlining\n");
        printf("                 v ............. inline virtual methods\n");
@@ -719,6 +720,9 @@ int main(int argc, char **argv)
                                case 'm':
                                        showmethods = true;
                                        break;
+                               case 'n':
+                                       opt_shownativestub = true;
+                                       break;
                                case 'u':
                                        showutf = true;
                                        break;
index 8d1d567480b291748ef5a47b70d88421c4b64bbc..3c2315bbb5e899c3933dd5b9a3b42738d39c07ba 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: options.c 1735 2004-12-07 14:33:27Z twisti $
+   $Id: options.c 2780 2005-06-22 10:51:03Z twisti $
 
 */
 
@@ -63,6 +63,7 @@ bool showstack = false;
 bool showdisassemble = false;  /* generate disassembler listing              */
 bool showddatasegment = false; /* generate data segment listing              */
 bool showintermediate = false; /* generate intermediate code listing         */
+bool opt_shownativestub = false;
 
 bool useinliningm = false;      /* use method inlining                        */
 bool useinlining = false;      /* use method inlining                        */
index 4dbbf8f8e067d3ce35c24c58f9d12028e6fecb58..98bdb9b3ab2bfa5e5f8afa3c85e2accddb737656 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: options.h 1752 2004-12-13 08:28:10Z twisti $
+   $Id: options.h 2780 2005-06-22 10:51:03Z twisti $
 
 */
 
@@ -81,6 +81,7 @@ extern bool showstack;
 extern bool showdisassemble;
 extern bool showddatasegment;
 extern bool showintermediate;
+extern bool opt_shownativestub;
 
 /*#undef INAFTERMAIN*/  /*use to inline system methods before main is called*/
 #define INAFTERMAIN T /*use to turn off inlining before main called */