Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(30)  |  Call(16)  |  Derive(0)  |  Import(14)
Format an 64 bits unsigned integer.

        def formatUintHex64(value):
    """
    Format an 64 bits unsigned integer.
    """
    return u"0x%016x" % value
        


src/s/e/segvault-HEAD/fusil/ptrace/ptrace/tools.py   segvault(Download)
from ctypes import sizeof
from ptrace.ctypes_tools import formatUintHex16, formatUintHex32, formatWordHex
from datetime import datetime, timedelta
from os import getenv, access, X_OK, pathsep, getcwd
from os.path import join as path_join, isabs, dirname, normpath
            value = formatUintHex16(value)
        else:
            value = formatWordHex(value)
        log("%s = %s" % (name, value))
 

src/p/y/python-ptrace-0.7/ptrace/tools.py   python-ptrace(Download)
from ctypes import sizeof
from ptrace.ctypes_tools import formatUintHex16, formatUintHex32, formatWordHex
from datetime import datetime, timedelta
from os import getenv, access, X_OK, pathsep, getcwd
from os.path import join as path_join, isabs, dirname, normpath
            value = formatUintHex16(value)
        else:
            value = formatWordHex(value)
        log("%s = %s" % (name, value))
 

src/s/e/segvault-HEAD/fusil/ptrace/ptrace/syscall/syscall_argument.py   segvault(Download)
from ptrace.cpu_info import CPU_WORD_SIZE
from ptrace.ctypes_tools import uint2int, formatWordHex, formatAddress
from ptrace.signames import signalName
from ctypes import c_int
from ptrace.error import PTRACE_ERRORS, writeError
        name = self.name
        if not argtype or not name:
            return formatWordHex(self.value)
 
        syscall = self.function.name
 
        # Default formatter: hexadecimal
        return formatWordHex(self.value)
 
    def formatValuePointer(self, argtype):

src/s/e/segvault-HEAD/fusil/ptrace/ptrace/debugger/process.py   segvault(Download)
from ptrace.ctypes_tools import bytes2word, word2bytes, bytes2type, bytes2array
from signal import SIGTRAP, SIGSTOP, SIGKILL
from ptrace.ctypes_tools import formatAddress, formatWordHex
from ctypes import sizeof, c_char_p
from logging import info, warning, error
            try:
                value = self.readWord(sp + delta)
                log("STACK%+ 3i: %s" % (delta, formatWordHex(value)))
                displayed += 1
            except PtraceError:

src/p/y/python-ptrace-0.7/ptrace/syscall/syscall_argument.py   python-ptrace(Download)
from ptrace.cpu_info import CPU_WORD_SIZE
from ptrace.ctypes_tools import uint2int, formatWordHex, formatAddress
from ptrace.signames import signalName
from ctypes import c_int
from ptrace.error import PTRACE_ERRORS, writeError
        name = self.name
        if not argtype or not name:
            return formatWordHex(self.value)
 
        syscall = self.function.name
 
        # Default formatter: hexadecimal
        return formatWordHex(self.value)
 
    def formatValuePointer(self, argtype):

src/s/e/segvault-HEAD/fusil/ptrace/ptrace/syscall/ptrace_syscall.py   segvault(Download)
from os import strerror
from itertools import izip
from ptrace.cpu_info import CPU_X86_64, CPU_POWERPC, CPU_I386
from ptrace.ctypes_tools import ulong2long, formatAddress, formatWordHex
from ptrace.func_call import FunctionCall
                    self.result, strerror(-self.result))
            elif not(0 <= self.result <= 9):
                text = "%s (%s)" % (self.result, formatWordHex(uresult))
            else:
                text = str(self.result)

src/p/y/python-ptrace-0.7/ptrace/debugger/process.py   python-ptrace(Download)
from ptrace.ctypes_tools import bytes2word, word2bytes, bytes2type, bytes2array
from signal import SIGTRAP, SIGSTOP, SIGKILL
from ptrace.ctypes_tools import formatAddress, formatWordHex
from ctypes import sizeof, c_char_p
from logging import info, warning, error
            try:
                value = self.readWord(sp + delta)
                log("STACK%+ 3i: %s" % (delta, formatWordHex(value)))
                displayed += 1
            except PtraceError:

src/p/y/python-ptrace-0.7/ptrace/syscall/ptrace_syscall.py   python-ptrace(Download)
from os import strerror
 
from ptrace.cpu_info import CPU_X86_64, CPU_POWERPC, CPU_I386, CPU_ARM
from ptrace.ctypes_tools import ulong2long, formatAddress, formatWordHex
from ptrace.func_call import FunctionCall
                    self.result, strerror(-self.result))
            elif not(0 <= self.result <= 9):
                text = "%s (%s)" % (self.result, formatWordHex(uresult))
            else:
                text = str(self.result)

src/s/e/segvault-HEAD/fusil/ptrace/gdb.py   segvault(Download)
from ptrace.binding import HAS_PTRACE_SINGLESTEP
from ptrace.disasm import HAS_DISASSEMBLER
from ptrace.ctypes_tools import (truncateWord,
    formatWordHex, formatAddress, formatAddressRange, word2bytes)
from ptrace.process_tools import dumpProcessInfo
            return str(err)
        error("Decimal: %s" % value)
        error("Hexadecimal: %s" % formatWordHex(value))
        for map in self.process.readMappings():
            if value not in map:

src/s/e/segvault-HEAD/fusil/ptrace/ptrace/debugger/backtrace.py   segvault(Download)
from ptrace.ctypes_tools import formatAddress, formatWordHex
from ptrace.cpu_info import CPU_WORD_SIZE, CPU_MAX_UINT
from ptrace import PtraceError
 
class BacktraceFrame:
    def __str__(self):
        arguments = (formatWordHex(arg) for arg in self.arguments)
        return u"IP=%s: %s (%s)" % (formatAddress(self.ip), self.name, ", ".join(arguments))
 
class Backtrace:

  1 | 2  Next