WEB开发网
开发学院操作系统Linux/Unix kdb编译,安装,使用完全手册 阅读

kdb编译,安装,使用完全手册

 2008-12-30 08:33:30 来源:WEB开发网   
核心提示: 先运行make menuconfig这个命令,不更改任何选项,kdb编译,安装,使用完全手册(2),直接回车,然后选择yes,记住,这样做比在menuconfig菜单选项里选择要安全和清晰的多,这样就能生成一个隐藏的文件.config了,用vi/vim 打开这个文件

先运行make menuconfig这个命令,不更改任何选项,直接回车,然后选择yes,这样就能生成一个隐藏的文件.config了。

用vi/vim 打开这个文件,

改写如下:

CONFIG_KDB=y

CONFIG_KDB_MODULES=n

CONFIG_KDB_OFF=n

CONFIG_KALLSYMS=y

CONFIG_FRAME_POINTER=y

保存。记住,这样做比在menuconfig菜单选项里选择要安全和清晰的多。

打开kdb/kdb_cmds这个文件,全部注释掉所有:例如:

# Initial commands for kdb, alter to suit your needs.

# These commands are executed in kdb_init() context, no SMP, no

# processes. Commands that require process data (including stack or

# registers) are not reliable this early. set and bp commands should

# be safe. Global breakpoint commands affect each cpu as it is booted.

# Standard debugging information for first level support, just type archkdb

# or archkdbcpu or archkdbshort at the kdb prompt.

defcmd archkdb "" "First line arch debugging"

#set BTSYMARG 1

#set BTARGS 5

#-archkdbcommon

#-bta

endefcmd

defcmd archkdbcpu "" "archkdb with only tasks on cpus"

#set BTSYMARG 1

#set BTARGS 5

#-archkdbcommon

#-btc

endefcmd

defcmd archkdbshort "" "archkdb with less detailed backtrace"

#set BTSYMARG 0

#set BTARGS 0

#-archkdbcommon

#-bta

Tags:kdb 编译

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接