MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SYNOPSIS |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 2 | string * last_instructions(int length, int verbose) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 3 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 4 | DESCRIPTION |
| 5 | Returns an array showing the 'length' last executed |
| 6 | instructions in disassembled form. If 'verbose' is non-zero |
| 7 | (the default), line number information are also included. |
| 8 | Each string is built as this: |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 9 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 10 | Opcode-Address: Opcode Operand Mnemonic (Stackdepth) Linenumber |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 11 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 12 | The Stackdepth information consists of two numbers <rel>:<abs>: |
| 13 | <rel> is the relative stack usage in this function, <abs> is the |
| 14 | absolute stack usage. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 15 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 16 | The linenumber information is appended if requested and a new |
| 17 | source line is reached. Also, calls between objects produce a |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 18 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 19 | Objectname Programname Linenumber |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 20 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 21 | entry in the resulting array (in verbose mode only). |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 22 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 23 | There is a preconfigured upper limit for the backtrace. |
| 24 | |
| 25 | HISTORY |
| 26 | Introduced in 3.2.1@34. |
| 27 | The absolute stack depth information was added in LDMud 3.2.8. |
| 28 | |
| 29 | SEE ALSO |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 30 | debug_message(E) |