MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / peek_code_bytes

Method peek_code_bytes

pydevd_attach_to_process/winappdbg/thread.py:1495–1509  ·  view source on GitHub ↗

Tries to read some bytes of the code currently being executed. @type size: int @param size: Number of bytes to read. @type offset: int @param offset: Offset from the program counter to begin reading. @rtype: str @return: Bytes read from

(self, size=128, offset=0)

Source from the content-addressed store, hash-verified

1493 return self.get_process().read(self.get_pc() + offset, size)
1494
1495 def peek_code_bytes(self, size=128, offset=0):
1496 """
1497 Tries to read some bytes of the code currently being executed.
1498
1499 @type size: int
1500 @param size: Number of bytes to read.
1501
1502 @type offset: int
1503 @param offset: Offset from the program counter to begin reading.
1504
1505 @rtype: str
1506 @return: Bytes read from the process memory.
1507 May be less than the requested number of bytes.
1508 """
1509 return self.get_process().peek(self.get_pc() + offset, size)
1510
1511 def peek_pointers_in_registers(self, peekSize=16, context=None):
1512 """

Callers 1

fetch_extra_dataMethod · 0.80

Calls 3

get_processMethod · 0.95
get_pcMethod · 0.95
peekMethod · 0.80

Tested by

no test coverage detected