Permalink
Browse files

Promote GDB to a third-party utility

  • Loading branch information...
zachriggle committed Sep 26, 2016
1 parent ab1588a commit b91bb0260755b18fbbde4b67f77d8b34dea6b145
Showing with 68 additions and 21 deletions.
  1. +1 −1 .isort.cfg
  2. +1 −0 pwndbg/__init__.py
  3. +1 −0 pwndbg/android.py
  4. +1 −1 pwndbg/arch.py
  5. +1 −1 pwndbg/arguments.py
  6. +1 −0 pwndbg/argv.py
  7. +1 −0 pwndbg/auxv.py
  8. +3 −2 pwndbg/chain.py
  9. +1 −0 pwndbg/commands/__init__.py
  10. +1 −0 pwndbg/commands/argv.py
  11. +1 −0 pwndbg/commands/aslr.py
  12. +1 −1 pwndbg/commands/auxv.py
  13. +1 −0 pwndbg/commands/checksec.py
  14. +1 −0 pwndbg/commands/context.py
  15. +1 −0 pwndbg/commands/cpsr.py
  16. +1 −0 pwndbg/commands/defcon.py
  17. +1 −0 pwndbg/commands/dt.py
  18. +1 −1 pwndbg/commands/elf.py
  19. +1 −0 pwndbg/commands/gdbinit.py
  20. +1 −1 pwndbg/commands/heap.py
  21. +1 −0 pwndbg/commands/ida.py
  22. +1 −0 pwndbg/commands/misc.py
  23. +1 −1 pwndbg/commands/nearpc.py
  24. +1 −0 pwndbg/commands/next.py
  25. +1 −0 pwndbg/commands/peda.py
  26. +1 −0 pwndbg/commands/procinfo.py
  27. +1 −0 pwndbg/commands/reload.py
  28. +1 −0 pwndbg/commands/rop.py
  29. +1 −0 pwndbg/commands/ropper.py
  30. +1 −0 pwndbg/commands/search.py
  31. +1 −0 pwndbg/commands/segments.py
  32. +1 −0 pwndbg/commands/shell.py
  33. +1 −0 pwndbg/commands/start.py
  34. +1 −1 pwndbg/commands/vmmap.py
  35. +1 −0 pwndbg/commands/windbg.py
  36. +1 −2 pwndbg/config.py
  37. +1 −1 pwndbg/disasm/__init__.py
  38. +1 −0 pwndbg/dt.py
  39. +1 −0 pwndbg/elf.py
  40. +1 −1 pwndbg/emu/emulator.py
  41. +1 −0 pwndbg/enhance.py
  42. +1 −0 pwndbg/events.py
  43. +1 −0 pwndbg/file.py
  44. +1 −0 pwndbg/gcc.py
  45. +1 −0 pwndbg/heap/dlmalloc.py
  46. +1 −0 pwndbg/heap/ptmalloc.py
  47. +1 −1 pwndbg/hexdump.py
  48. +1 −0 pwndbg/ida.py
  49. +1 −0 pwndbg/info.py
  50. +1 −0 pwndbg/inthook.py
  51. +1 −0 pwndbg/linkmap.py
  52. +1 −0 pwndbg/memoize.py
  53. +1 −0 pwndbg/memory.py
  54. +1 −1 pwndbg/next.py
  55. +1 −0 pwndbg/proc.py
  56. +1 −0 pwndbg/prompt.py
  57. +1 −1 pwndbg/qemu.py
  58. +1 −1 pwndbg/regs.py
  59. +1 −0 pwndbg/search.py
  60. +1 −0 pwndbg/stack.py
  61. +1 −0 pwndbg/stdio.py
  62. +1 −0 pwndbg/strings.py
  63. +1 −1 pwndbg/symbol.py
  64. +1 −1 pwndbg/typeinfo.py
  65. +1 −1 pwndbg/ui.py
  66. +1 −0 pwndbg/vmmap.py
@@ -2,4 +2,4 @@
indent=' '
not_skip = __init__.py
force_single_line = 1
known_third_party=capstone,unicorn,six,psutil,pycparser
known_third_party=capstone,unicorn,six,psutil,pycparser,gdb
@@ -8,6 +8,7 @@
import sys

import gdb

import pwndbg.android
import pwndbg.arch
import pwndbg.arguments
@@ -6,6 +6,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.color
import pwndbg.events
import pwndbg.file
@@ -9,9 +9,9 @@
import struct
import sys

import gdb
from capstone import *

import gdb
import pwndbg.events
import pwndbg.memoize
import pwndbg.regs
@@ -9,10 +9,10 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
from capstone import CS_GRP_CALL
from capstone import CS_GRP_INT

import gdb
import pwndbg.abi
import pwndbg.arch
import pwndbg.constants
@@ -6,6 +6,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.arch
import pwndbg.events
import pwndbg.memory
@@ -10,6 +10,7 @@
import sys

import gdb

import pwndbg.arch
import pwndbg.events
import pwndbg.info
@@ -6,6 +6,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.color.chain as C
import pwndbg.color.memory as M
import pwndbg.color.theme as theme
@@ -39,8 +40,8 @@ def get(address, limit=LIMIT, offset=0):
return result


config_arrow_left = theme.Parameter('chain-arrow-left', u'◂—', 'left arrow of chain formatting')
config_arrow_right = theme.Parameter('chain-arrow-right', u'—▸', 'right arrow of chain formatting')
config_arrow_left = theme.Parameter('chain-arrow-left', '◂—', 'left arrow of chain formatting')
config_arrow_right = theme.Parameter('chain-arrow-right', '—▸', 'right arrow of chain formatting')
config_contiguous = theme.Parameter('chain-contiguous-marker', '...', 'contiguous marker of chain formatting')

def format(value, limit=LIMIT, code=True, offset=0):
@@ -11,6 +11,7 @@
import traceback

import gdb

import pwndbg.chain
import pwndbg.color
import pwndbg.enhance
@@ -6,6 +6,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.arch
import pwndbg.argv
import pwndbg.commands
@@ -8,6 +8,7 @@
import argparse

import gdb

import pwndbg.color
import pwndbg.commands
import pwndbg.proc
@@ -5,9 +5,9 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import six

import gdb
import pwndbg.auxv
import pwndbg.chain
import pwndbg.commands
@@ -9,6 +9,7 @@
import subprocess

import gdb

import pwndbg.commands
import pwndbg.which

@@ -8,6 +8,7 @@
import sys

import gdb

import pwndbg.arguments
import pwndbg.chain
import pwndbg.color
@@ -6,6 +6,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.arch
import pwndbg.color
import pwndbg.commands
@@ -6,6 +6,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.commands
import pwndbg.memory
import pwndbg.symbol
@@ -6,6 +6,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.color
import pwndbg.commands
import pwndbg.dt
@@ -5,9 +5,9 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
from elftools.elf.elffile import ELFFile

import gdb
import pwndbg.commands


@@ -11,6 +11,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.commands


@@ -6,9 +6,9 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import six

import gdb
import pwndbg.color.memory as M
import pwndbg.commands
from pwndbg.color import bold
@@ -10,6 +10,7 @@
import os

import gdb

import pwndbg.commands
import pwndbg.commands.context
import pwndbg.ida
@@ -10,6 +10,7 @@
import struct

import gdb

import pwndbg as _pwndbg
import pwndbg.arch as _arch
import pwndbg.commands
@@ -5,9 +5,9 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
from capstone import *

import gdb
import pwndbg.arguments
import pwndbg.color.context as C
import pwndbg.color.disasm as D
@@ -9,6 +9,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.commands
import pwndbg.next

@@ -8,6 +8,7 @@
import sys

import gdb

import pwndbg.auxv
import pwndbg.commands
import pwndbg.commands.context
@@ -9,6 +9,7 @@
import string

import gdb

import pwndbg.auxv
import pwndbg.commands
import pwndbg.file
@@ -11,6 +11,7 @@
import types

import gdb

import pwndbg
import pwndbg.commands
import pwndbg.events
@@ -11,6 +11,7 @@
import tempfile

import gdb

import pwndbg.commands
import pwndbg.vmmap

@@ -11,6 +11,7 @@
import tempfile

import gdb

import pwndbg.commands
import pwndbg.vmmap

@@ -11,6 +11,7 @@
import struct

import gdb

import pwndbg.color.memory as M
import pwndbg.commands
import pwndbg.config
@@ -6,6 +6,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.commands
import pwndbg.regs

@@ -11,6 +11,7 @@
import os

import gdb

import pwndbg.commands
import pwndbg.which

@@ -10,6 +10,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.commands
import pwndbg.elf
import pwndbg.events
@@ -8,9 +8,9 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import six

import gdb
import pwndbg.color.memory as M
import pwndbg.commands
import pwndbg.compat
@@ -13,6 +13,7 @@
import sys

import gdb

import pwndbg.arch
import pwndbg.commands
import pwndbg.memory
@@ -26,9 +26,8 @@
import sys
import types

import six

import gdb
import six

TYPES = collections.OrderedDict()

@@ -12,9 +12,9 @@
import collections

import capstone
import gdb
from capstone import *

import gdb
import pwndbg.arch
import pwndbg.disasm.arch
import pwndbg.ida
@@ -15,6 +15,7 @@
import tempfile

import gdb

import pwndbg.memory
import pwndbg.typeinfo

@@ -18,6 +18,7 @@
import tempfile

import gdb

import pwndbg.auxv
import pwndbg.events
import pwndbg.info
@@ -12,9 +12,9 @@
import inspect

import capstone as C
import gdb
import unicorn as U

import gdb
import pwndbg.arch
import pwndbg.disasm
import pwndbg.emu.emulator
@@ -16,6 +16,7 @@
import string

import gdb

import pwndbg.arch
import pwndbg.color as color
import pwndbg.color.enhance as E
@@ -15,6 +15,7 @@
import traceback

import gdb

import pwndbg.config
import pwndbg.stdio

@@ -16,6 +16,7 @@
import tempfile

import gdb

import pwndbg.qemu
import pwndbg.remote

@@ -15,6 +15,7 @@
import platform

import gdb

import pwndbg.arch


@@ -6,6 +6,7 @@
from __future__ import unicode_literals

import gdb

import pwndbg.events
import pwndbg.typeinfo

Oops, something went wrong.

0 comments on commit b91bb02

Please sign in to comment.