首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 百度C / C++连接框架

百度C / C++连接框架

资 源 简 介

BHook BHook is a hooking framework for the C/C++ program on Linux platform. * It can dynamically replace the original function to change the program logic at runtime. * Supports for replacing any function, including shared library function(such as system function), static library function and program function. * Provides the default hooking library for system function. * It can be used for debugging, mocking, testing and so on. * Baidu C/C++ Mocking Framework is based on the BHook. Install $ ./configure --prefix={your install path}$ make$ make install # Getting Started # ## Use the default hooking library ## Let the program produce the disk full exception by hooking write function that set errno to ENOSPC(#define ENOSPC 28) with 80% probability: $ bhook -e write -p 80 -i 28 ./a.out ## User-defined system function ## 1. Source code: ``` //main.cpp #include

文 件 列 表

bhook-1.0.0
build-aux
include
scripts
test
configure.ac
aclocal.m4
Makefile.am
Makefile.in
configure
src
preload
VIP VIP
0.175692s