Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自测工具无效果 #8

Open
yujack008 opened this issue Sep 19, 2024 · 1 comment
Open

自测工具无效果 #8

yujack008 opened this issue Sep 19, 2024 · 1 comment

Comments

@yujack008
Copy link

yujack008 commented Sep 19, 2024

demo如下:

void _init(void)
{
    DEBUG("init start");
    DEBUG("pid:%d", getpid());
    DEBUG("fopen:0x%x", fopen);
    std::thread(test_thread).detach();
}
void test_thread() {
    while (true) {
        sleep(1);
        DEBUG("fopen read:%x", *(size_t*)fopen);
    }
}

内核版本:5.15.123-android13

支持硬件断点:
130|air:/data/local/tmp # zcat /proc/config.gz | grep CONFIG_HAVE_HW_BREAKPOINT
CONFIG_HAVE_HW_BREAKPOINT=y

@thouger
Copy link

thouger commented Jan 10, 2025

我5.15也不行,运行了什么输出也没有

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants