Skip to content

Commit

Permalink
always refresh on connect (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz authored Jun 2, 2022
1 parent 5798361 commit c520fc3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions decomp2dbg/clients/gdb/gdb_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,7 @@ def deregister_decompiler_context_pane(self, decompiler_name):
#

def on_decompiler_connected(self, decompiler_name):
if not self.text_segment_base_addr:
self.text_segment_base_addr = find_text_segment_base_addr(is_remote=is_remote_debug())

self.text_segment_base_addr = find_text_segment_base_addr(is_remote=is_remote_debug())
self.dec_client.update_symbols()
self.register_decompiler_context_pane(decompiler_name)

Expand Down
1 change: 0 additions & 1 deletion decomp2dbg/clients/gdb/gef_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ def register_decompiler_context_pane(self, decompiler_name):
self.ctx_pane_registrar("decompilation", self.dec_pane.display_pane, self.dec_pane.title)

def deregister_decompiler_context_pane(self, decompiler_name):
print("deregister called!")
self.gef_config["context.layout"] = self.gef_config["context.layout"].replace(" decompilation", "")

0 comments on commit c520fc3

Please sign in to comment.