Skip to content

Commit

Permalink
Reflect config changes in pwndbg (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymex73 authored Oct 27, 2022
1 parent 8cbea0c commit e6d8e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decomp2dbg/clients/gdb/pwndbg_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ def __init__(self):

def register_decompiler_context_pane(self, decompiler_name):
pwndbg.commands.context.context_sections["g"] = self.dec_pane.context_gdecompiler
pwndbg.commands.config_context_sections = pwndbg.config.Parameter(
pwndbg.commands.config_context_sections = pwndbg.lib.config.Parameter(
f'context-sections',
f'regs disasm code gdecompiler stack backtrace expressions',
f'which context sections are displayed (controls order)'
)

def deregister_decompiler_context_pane(self, decompiler_name):
del pwndbg.commands.context.context_sections["g"]
pwndbg.commands.config_context_sections = pwndbg.config.Parameter(
pwndbg.commands.config_context_sections = pwndbg.lib.config.Parameter(
f'context-sections',
f'regs disasm code ghidra stack backtrace expressions',
f'which context sections are displayed (controls order)'
Expand Down

0 comments on commit e6d8e1e

Please sign in to comment.