cat /sys/module/xxx/sections/.text = 0x00000000 for gdb

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

cat /sys/module/xxx/sections/.text = 0x00000000 for gdb

506 次查看
fatalfeel
Contributor V

When cat /sys/module/hellotest/sections/.text = 0x00000000

Try this way

gedit /root/project_board/free_imx/myandroid/kernel_imx/kernel/module.c

//in function module_sect_show

return sprintf(buf, "0x%pK\n", (void *)sattr->address);

//change to

return sprintf(buf, "0x%p\n", (void *)sattr->address);

标签 (4)
0 项奖励
0 回复数