daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/gef.py b/gef.py
  2. index 13e26eb..2f189eb 100644
  3. --- a/gef.py
  4. +++ b/gef.py
  5. @@ -1160,6 +1160,7 @@ def capstone_disassemble(location, nb_insn, **kwargs):
  6.      capstone    = sys.modules["capstone"]
  7.      arch, mode  = get_capstone_arch(arch=kwargs.get("arch", None), mode=kwargs.get("mode", None), endian=kwargs.get("endian", None))
  8.      cs          = capstone.Cs(arch, mode)
  9. +    cs.syntax   = capstone.CS_OPT_SYNTAX_ATT
  10.      cs.detail   = True
  11.  
  12.      page_start  = align_address_to_page(location)
  13. @@ -8395,13 +8396,6 @@ if __name__  == "__main__":
  14.          # pretty print
  15.          gdb.execute("set print pretty on")
  16.  
  17. -        try:
  18. -            # this will raise a gdb.error unless we're on x86
  19. -            gdb.execute("set disassembly-flavor intel")
  20. -        except gdb.error:
  21. -            # we can safely ignore this
  22. -            pass
  23. -
  24.          # SIGALRM will simply display a message, but gdb won't forward the signal to the process
  25.          gdb.execute("handle SIGALRM print nopass")
RAW Paste Data
Top