Skip to content

Commit

Permalink
fix: create tempdir before first usage (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
theguy147 committed Oct 8, 2021
1 parent fac4e7d commit 467273f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gef.py
Expand Up @@ -11346,7 +11346,9 @@ def __gef_prompt__(current_prompt):
__gef__ = GefCommand()
__gef__.setup()

gdb.execute("save gdb-index {}".format(get_gef_setting("gef.tempdir")))
tempdir = get_gef_setting("gef.tempdir")
gef_makedirs(tempdir)
gdb.execute("save gdb-index {}".format(tempdir))

# gdb events configuration
gef_on_continue_hook(continue_handler)
Expand Down

0 comments on commit 467273f

Please sign in to comment.