pwndbg_nearpc
Disassemble code near the program counter with inline annotations showing symbols, registers, memory, and branch targets. Optionally emulate to predict register values.
Instructions
Disassemble instructions near the PC with enhanced annotation.
pwndbg command: nearpc (aliases: pdisass, u) Source: pwndbg/commands/nearpc.py Category: Disassemble
pwndbg's enhanced disassembler that shows resolved symbols, register values, memory dereferences, and branch target annotations inline with the disassembly.
Args: session_id: The UUID of the session. address: Address to disassemble at (default: $pc). lines: Number of instructions to show. emulate: If True, emulate instructions to show predicted register values.
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/nearpc/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "pwndbg_nearpc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| address | No | ||
| lines | No | ||
| emulate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |