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/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| address | No | ||
| lines | No | ||
| emulate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |