TianoCore EDK2 master
|
#include "Edb.h"
Go to the source code of this file.
Data Structures | |
struct | EDB_INSTRUCTION_STRING |
Variables | |
EDB_DISASM_INSTRUCTION | mEdbDisasmInstructionTable [] |
EDB_INSTRUCTION_STRING | mInstructionString |
UINTN | mInstructionNameOffset |
UINTN | mInstructionContentOffset |
Copyright (c) 2007, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file EdbDisasmSupport.c.
Find the symbol string according to address, then print it.
Address | - instruction address |
1 | - symbol string is found and printed |
0 | - symbol string not found |
Definition at line 1015 of file EdbDisasmSupport.c.
UINT8 EdbGetBitWidth | ( | IN UINT64 | Value | ) |
Get Bit Width of the value.
Value | - data |
Definition at line 193 of file EdbDisasmSupport.c.
BOOLEAN EdbGetNaturalIndex16 | ( | IN UINT16 | Data16, |
OUT UINTN * | NaturalUnits, | ||
OUT UINTN * | ConstantUnits | ||
) |
Get Sign, NaturalUnits, and ConstantUnits of the WORD data.
Data16 | - WORD data |
NaturalUnits | - Natural Units of the WORD |
ConstantUnits | - Constant Units of the WORD |
Definition at line 102 of file EdbDisasmSupport.c.
BOOLEAN EdbGetNaturalIndex32 | ( | IN UINT32 | Data32, |
OUT UINTN * | NaturalUnits, | ||
OUT UINTN * | ConstantUnits | ||
) |
Get Sign, NaturalUnits, and ConstantUnits of the DWORD data.
Data32 | - DWORD data |
NaturalUnits | - Natural Units of the DWORD |
ConstantUnits | - Constant Units of the DWORD |
Definition at line 133 of file EdbDisasmSupport.c.
BOOLEAN EdbGetNaturalIndex64 | ( | IN UINT64 | Data64, |
OUT UINT64 * | NaturalUnits, | ||
OUT UINT64 * | ConstantUnits | ||
) |
Get Sign, NaturalUnits, and ConstantUnits of the QWORD data.
Data64 | - QWORD data |
NaturalUnits | - Natural Units of the QWORD |
ConstantUnits | - Constant Units of the QWORD |
Definition at line 164 of file EdbDisasmSupport.c.
CHAR16 * EdbPostInstructionString | ( | VOID | ) |
Post instruction string construction.
Definition at line 70 of file EdbDisasmSupport.c.
CHAR16 * EdbPreInstructionString | ( | VOID | ) |
Pre instruction string construction.
Definition at line 51 of file EdbDisasmSupport.c.
UINTN EdbPrintComma | ( | VOID | ) |
Print the comma to instruction content.
Definition at line 989 of file EdbDisasmSupport.c.
Print the hexical WORD to instruction content.
Data16 | - WORD data |
Definition at line 735 of file EdbDisasmSupport.c.
Print the decimal signed WORD to instruction content.
Data16 | - signed WORD data |
Definition at line 896 of file EdbDisasmSupport.c.
Print the hexical DWORD to instruction content.
Data32 | - DWORD data |
Definition at line 761 of file EdbDisasmSupport.c.
Print the decimal signed DWORD to instruction content.
Data32 | - signed DWORD data |
Definition at line 927 of file EdbDisasmSupport.c.
Print the hexical QWORD to instruction content.
Data64 | - QWORD data |
Definition at line 787 of file EdbDisasmSupport.c.
Print the decimal unsigned QWORD to instruction content.
Data64 | - unsigned QWORD data |
Definition at line 839 of file EdbDisasmSupport.c.
Print the decimal signed QWORD to instruction content.
Data64 | - signed QWORD data |
Definition at line 958 of file EdbDisasmSupport.c.
Print the hexical BYTE to instruction content.
Data8 | - BYTE data |
Definition at line 709 of file EdbDisasmSupport.c.
Print the decimal signed BYTE to instruction content.
Data8 | - signed BYTE data |
Definition at line 865 of file EdbDisasmSupport.c.
Print the decimal unsigned UINTN to instruction content.
Data | - unsigned UINTN data |
Definition at line 813 of file EdbDisasmSupport.c.
Print dedicated register 1 in operands.
Operands | - instruction operands |
Definition at line 336 of file EdbDisasmSupport.c.
Print dedicated register 2 in operands.
Operands | - instruction operands |
Definition at line 374 of file EdbDisasmSupport.c.
Print the hexical WORD immediate data to instruction content.
Data | - WORD data |
Definition at line 579 of file EdbDisasmSupport.c.
Print the hexical DWORD immediate data to instruction content.
Data | - DWORD data |
Definition at line 605 of file EdbDisasmSupport.c.
Print the hexical QWORD immediate data to instruction content.
Data | - QWORD data |
Definition at line 631 of file EdbDisasmSupport.c.
Print the decimal QWORD immediate data to instruction content.
Data64 | - QWORD data |
Definition at line 683 of file EdbDisasmSupport.c.
Print the hexical BYTE immediate data to instruction content.
Data | - BYTE data |
Definition at line 553 of file EdbDisasmSupport.c.
Print the decimal UINTN immediate data to instruction content.
Data | - UINTN data |
Definition at line 657 of file EdbDisasmSupport.c.
Print the hexical UINTN index data to instruction content.
Sign | - Signed bit of UINTN data |
NaturalUnits | - natural units of UINTN data |
ConstantUnits | - natural units of UINTN data |
Definition at line 414 of file EdbDisasmSupport.c.
Print the hexical QWORD index data to instruction content.
Sign | - Signed bit of QWORD data |
NaturalUnits | - natural units of QWORD data |
ConstantUnits | - natural units of QWORD data |
Definition at line 447 of file EdbDisasmSupport.c.
Print the instruction name.
Name | - instruction name |
Definition at line 238 of file EdbDisasmSupport.c.
VOID EdbPrintRaw | ( | IN EFI_PHYSICAL_ADDRESS | InstructionAddress, |
IN UINTN | InstructionNumber | ||
) |
Print the EBC byte code.
InstructionAddress | - instruction address |
InstructionNumber | - instruction number |
Definition at line 1045 of file EdbDisasmSupport.c.
Print the hexical WORD raw index data to instruction content.
Data16 | - WORD data |
Definition at line 478 of file EdbDisasmSupport.c.
Print the hexical DWORD raw index data to instruction content.
Data32 | - DWORD data |
Definition at line 503 of file EdbDisasmSupport.c.
Print the hexical QWORD raw index data to instruction content.
Data64 | - QWORD data |
Definition at line 528 of file EdbDisasmSupport.c.
Print register 1 in operands.
Operands | - instruction operands |
Definition at line 264 of file EdbDisasmSupport.c.
Print register 2 in operands.
Operands | - instruction operands |
Definition at line 300 of file EdbDisasmSupport.c.
Set offset for Instruction name and content.
InstructionNameOffset | - Instruction name offset |
InstructionContentOffset | - Instruction content offset |
Definition at line 32 of file EdbDisasmSupport.c.
EFI_STATUS EdbShowDisasm | ( | IN EFI_DEBUGGER_PRIVATE_DATA * | DebuggerPrivate, |
IN EFI_SYSTEM_CONTEXT | SystemContext | ||
) |
Print the EBC asm code.
DebuggerPrivate | - EBC Debugger private data structure |
SystemContext | - EBC system context. |
EFI_SUCCESS | - show disasm successfully |
Definition at line 1109 of file EdbDisasmSupport.c.
UINT64 GetRegisterValue | ( | IN EFI_SYSTEM_CONTEXT | SystemContext, |
IN UINT8 | Index | ||
) |
Get register value according to the system context, and register index.
SystemContext | - EBC system context. |
Index | - EBC register index |
Definition at line 1188 of file EdbDisasmSupport.c.
|
extern |
Definition at line 47 of file EdbDisasm.c.
UINTN mInstructionContentOffset |
Definition at line 21 of file EdbDisasmSupport.c.
UINTN mInstructionNameOffset |
Definition at line 20 of file EdbDisasmSupport.c.
EDB_INSTRUCTION_STRING mInstructionString |
Definition at line 19 of file EdbDisasmSupport.c.