Raymond Toy pushed to branch issue-192-disassemble-prints-radix-marker at cmucl / cmucl

Commits:

4 changed files:

Changes:

  • src/code/exports.lisp
    ... ... @@ -1368,7 +1368,9 @@
    1368 1368
       (:export "*NOTE-COLUMN*" "*OPCODE-COLUMN-WIDTH*" "ADD-COMMENT-HOOK"
    
    1369 1369
     	   "ADD-HOOK" "ADD-NOTE-HOOK" "ARG-VALUE" "CREATE-DSTATE"
    
    1370 1370
     	   "DISASSEM-STATE" "DISASSEMBLE" "DISASSEMBLE-CODE-COMPONENT"
    
    1371
    -	   "DISASSEMBLE-FUNCTION" "DISASSEMBLE-MEMORY" "DISASSEMBLE-SEGMENT"
    
    1371
    +	   "DISASSEMBLE-FUNCTION" "DISASSEMBLE-MEMORY"
    
    1372
    +	   "*DISASSEMBLE-PRINT-RADIX*"
    
    1373
    +	   "DISASSEMBLE-SEGMENT"
    
    1372 1374
     	   "DISASSEMBLE-SEGMENTS" "DSTATE-CODE" "DSTATE-CURPOS"
    
    1373 1375
     	   "DSTATE-GET-PROP" "DSTATE-NEXTPOS" "DSTATE-SEGMENT-LENGTH"
    
    1374 1376
     	   "DSTATE-SEGMENT-SAP" "DSTATE-SEGMENT-START" "FIELD-TYPE"
    

  • src/code/misc.lisp
    ... ... @@ -181,5 +181,7 @@
    181 181
       "Disassemble the machine code associated with OBJECT, which can be a
    
    182 182
       function, a lambda expression, or a symbol with a function definition.  If
    
    183 183
       it is not already compiled, the compiler is called to produce something to
    
    184
    -  disassemble."
    
    184
    +  disassemble.
    
    185
    +
    
    186
    +  Also see disassem:disassemble for finer control of disassembly."
    
    185 187
       (disassem:disassemble object))

  • src/compiler/disassem.lisp
    ... ... @@ -3318,12 +3318,16 @@
    3318 3318
     		:format-control (intl:gettext "Can't make a compiled function from ~S")
    
    3319 3319
     		:format-arguments (list name)))))
    
    3320 3320
     
    
    3321
    +(defvar *disassemble-print-radix*
    
    3322
    +  t
    
    3323
    +  "Default value for :radix argument for disassem:disassemble")
    
    3324
    +
    
    3321 3325
     (defun disassemble (object &key (stream *standard-output*)
    
    3322 3326
     			     (use-labels t)
    
    3323 3327
     			     (backend c:*native-backend*)
    
    3324 3328
     			     (base 16)
    
    3325 3329
     			     (case :downcase)
    
    3326
    -			     (radix t))
    
    3330
    +			     (radix *disassemble-print-radix*))
    
    3327 3331
       "Disassemble the machine code associated with OBJECT, which can be a
    
    3328 3332
       function, a lambda expression, or a symbol with a function definition.  If
    
    3329 3333
       it is not already compiled, the compiler is called to produce something to
    
    ... ... @@ -3338,7 +3342,7 @@
    3338 3342
       :Radix
    
    3339 3343
           The disassembler uses the specified base, case, and radix when
    
    3340 3344
           printing the disassembled code.  The default values are 16,
    
    3341
    -      :downcase, and T, respectively."
    
    3345
    +      :downcase, and *disassemble-print-radix*, respectively."
    
    3342 3346
       (declare (type (or function symbol cons) object)
    
    3343 3347
     	   (type (or (member t) stream) stream)
    
    3344 3348
     	   (type (member t nil) use-labels)
    

  • src/i18n/locale/cmucl.pot
    ... ... @@ -5694,7 +5694,9 @@ msgid ""
    5694 5694
     "If\n"
    
    5695 5695
     "  it is not already compiled, the compiler is called to produce something "
    
    5696 5696
     "to\n"
    
    5697
    -"  disassemble."
    
    5697
    +"  disassemble.\n"
    
    5698
    +"\n"
    
    5699
    +"  Also see disassem:disassemble for finer control of disassembly."
    
    5698 5700
     msgstr ""
    
    5699 5701
     
    
    5700 5702
     #: src/code/misc-doc.lisp
    
    ... ... @@ -17387,6 +17389,10 @@ msgstr ""
    17387 17389
     msgid "Can't make a compiled function from ~S"
    
    17388 17390
     msgstr ""
    
    17389 17391
     
    
    17392
    +#: src/compiler/disassem.lisp
    
    17393
    +msgid "Default value for :radix argument for disassem:disassemble"
    
    17394
    +msgstr ""
    
    17395
    +
    
    17390 17396
     #: src/compiler/disassem.lisp
    
    17391 17397
     msgid ""
    
    17392 17398
     "Disassemble the machine code associated with OBJECT, which can be a\n"
    
    ... ... @@ -17405,7 +17411,7 @@ msgid ""
    17405 17411
     "  :Radix\n"
    
    17406 17412
     "      The disassembler uses the specified base, case, and radix when\n"
    
    17407 17413
     "      printing the disassembled code.  The default values are 16,\n"
    
    17408
    -"      :downcase, and T, respectively."
    
    17414
    +"      :downcase, and *disassemble-print-radix*, respectively."
    
    17409 17415
     msgstr ""
    
    17410 17416
     
    
    17411 17417
     #: src/compiler/disassem.lisp