Installs the function hook at a given process and address. @see: L{unhook} @warning: Do not call from an function hook callback. @type debug: L{Debug} @param debug: Debug object. @type pid: int @param pid: Process ID. @type add
(self, debug, pid, address)
| 1373 | return stack |
| 1374 | |
| 1375 | def hook(self, debug, pid, address): |
| 1376 | """ |
| 1377 | Installs the function hook at a given process and address. |
| 1378 | |
| 1379 | @see: L{unhook} |
| 1380 | |
| 1381 | @warning: Do not call from an function hook callback. |
| 1382 | |
| 1383 | @type debug: L{Debug} |
| 1384 | @param debug: Debug object. |
| 1385 | |
| 1386 | @type pid: int |
| 1387 | @param pid: Process ID. |
| 1388 | |
| 1389 | @type address: int |
| 1390 | @param address: Function address. |
| 1391 | """ |
| 1392 | return debug.break_at(pid, address, self) |
| 1393 | |
| 1394 | def unhook(self, debug, pid, address): |
| 1395 | """ |
no test coverage detected