Skip to content

Commit

Permalink
removed global __infos_files__ , was obsolete since we started usin…
Browse files Browse the repository at this point in the history
…g `lru_cache`
  • Loading branch information
hugsy committed Jan 7, 2022
1 parent df129ed commit 809c735
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def update_gef(argv):
__functions__ = []
__aliases__ = []
__watches__ = {}
__infos_files__ = []
__gef_convenience_vars_index__ = 0
__context_messages__ = []
__heap_allocated_list__ = []
Expand Down Expand Up @@ -3199,13 +3198,9 @@ def get_function_length(sym):
def get_info_files():
"""Retrieve all the files loaded by debuggee."""
lines = gdb.execute("info files", to_string=True).splitlines()

if len(lines) < len(__infos_files__):
return __infos_files__

infos = []
for line in lines:
line = line.strip()

if not line:
break

Expand All @@ -3222,11 +3217,8 @@ def get_info_files():
else:
filename = get_filepath()

info = Zone(section_name, addr_start, addr_end, filename)

__infos_files__.append(info)

return __infos_files__
infos.append(Zone(section_name, addr_start, addr_end, filename))
return infos


def process_lookup_address(address):
Expand Down

0 comments on commit 809c735

Please sign in to comment.