Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
-
784a143b
by Raymond Toy at 2023-04-29T03:54:43+00:00
-
ce57a9f2
by Raymond Toy at 2023-04-29T03:55:21+00:00
4 changed files:
Changes:
... | ... | @@ -1365,7 +1365,9 @@ |
1365 | 1365 | (:export "*NOTE-COLUMN*" "*OPCODE-COLUMN-WIDTH*" "ADD-COMMENT-HOOK"
|
1366 | 1366 | "ADD-HOOK" "ADD-NOTE-HOOK" "ARG-VALUE" "CREATE-DSTATE"
|
1367 | 1367 | "DISASSEM-STATE" "DISASSEMBLE" "DISASSEMBLE-CODE-COMPONENT"
|
1368 | - "DISASSEMBLE-FUNCTION" "DISASSEMBLE-MEMORY" "DISASSEMBLE-SEGMENT"
|
|
1368 | + "DISASSEMBLE-FUNCTION" "DISASSEMBLE-MEMORY"
|
|
1369 | + "*DISASSEMBLE-PRINT-RADIX*"
|
|
1370 | + "DISASSEMBLE-SEGMENT"
|
|
1369 | 1371 | "DISASSEMBLE-SEGMENTS" "DSTATE-CODE" "DSTATE-CURPOS"
|
1370 | 1372 | "DSTATE-GET-PROP" "DSTATE-NEXTPOS" "DSTATE-SEGMENT-LENGTH"
|
1371 | 1373 | "DSTATE-SEGMENT-SAP" "DSTATE-SEGMENT-START" "FIELD-TYPE"
|
... | ... | @@ -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)) |
... | ... | @@ -102,7 +102,9 @@ |
102 | 102 | "The width of the column in which instruction-names are printed.
|
103 | 103 | NIL means use the default. A value of zero gives the effect of not
|
104 | 104 | aligning the arguments at all.")
|
105 | -(defvar *note-column* 45
|
|
105 | +(defvar *note-column*
|
|
106 | + #-x86 45
|
|
107 | + #+x86 55
|
|
106 | 108 | "The column in which end-of-line comments for notes are started.")
|
107 | 109 | |
108 | 110 | (defconstant default-opcode-column-width 6)
|
... | ... | @@ -3316,12 +3318,16 @@ |
3316 | 3318 | :format-control (intl:gettext "Can't make a compiled function from ~S")
|
3317 | 3319 | :format-arguments (list name)))))
|
3318 | 3320 | |
3321 | +(defvar *disassemble-print-radix*
|
|
3322 | + t
|
|
3323 | + "Default value for :radix argument for disassem:disassemble")
|
|
3324 | + |
|
3319 | 3325 | (defun disassemble (object &key (stream *standard-output*)
|
3320 | 3326 | (use-labels t)
|
3321 | 3327 | (backend c:*native-backend*)
|
3322 | 3328 | (base 16)
|
3323 | 3329 | (case :downcase)
|
3324 | - (radix *print-radix*))
|
|
3330 | + (radix *disassemble-print-radix*))
|
|
3325 | 3331 | "Disassemble the machine code associated with OBJECT, which can be a
|
3326 | 3332 | function, a lambda expression, or a symbol with a function definition. If
|
3327 | 3333 | it is not already compiled, the compiler is called to produce something to
|
... | ... | @@ -3336,7 +3342,7 @@ |
3336 | 3342 | :Radix
|
3337 | 3343 | The disassembler uses the specified base, case, and radix when
|
3338 | 3344 | printing the disassembled code. The default values are 16,
|
3339 | - :downcase, and *print-radix*, respectively."
|
|
3345 | + :downcase, and *disassemble-print-radix*, respectively."
|
|
3340 | 3346 | (declare (type (or function symbol cons) object)
|
3341 | 3347 | (type (or (member t) stream) stream)
|
3342 | 3348 | (type (member t nil) use-labels)
|
... | ... | @@ -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 *print-radix*, respectively."
|
|
17414 | +" :downcase, and *disassemble-print-radix*, respectively."
|
|
17409 | 17415 | msgstr ""
|
17410 | 17416 | |
17411 | 17417 | #: src/compiler/disassem.lisp
|