用gdb设置断点调试程序时,只停了一次后就exit
提示:Missing separate debuginfos use: debuginfo-install glibc-2.11-2.i686
切换到root
使用命令 :debuginfo-install glibc-2.11-2.i686
debuginfo-install命令参考:
http://yum.baseurl.org/wiki/YumUtils/DebugInfoInstall
debuginfo-install
debuginfo-install is used to install the debuginfo version of packages and their dependencies, based on the name of the non-debug package
Commmandline options
-h, --help | show this help message and exit |
-t, --tolerant | be tolerant of errors |
-C | run entirely from cache, don't update cache |
-c [config file] | config file location |
-R [minutes] | maximum command wait time |
-d [debug level] | debugging output level |
--showduplicates | show duplicates, in repos, in list/search commands |
-e [error level] | error output level |
-q, --quiet | quiet operation |
-v, --verbose | verbose operation |
-y | answer yes for all questions |
--version | show Yum version and exit |
--installroot=[path] | set install root |
--enablerepo=[repo] | enable one or more repositories (wildcards allowed) |
--disablerepo=[repo] | disable one or more repositories (wildcards allowed) |
-x [package], --exclude=[package] | exclude package(s) by name or glob |
--disableexcludes=[repo] | disable exclude from main, for a repo or for everything |
--obsoletes | enable obsoletes processing during updates |
--noplugins | disable Yum plugins |
--nogpgcheck | disable gpg signature checking |
--disableplugin=[plugin] | disable plugins by name |
--enableplugin=[plugin] | enable plugins by name |
--skip-broken | skip packages with depsolving problems |
Configuration option
There are no specific configuration files for this command
By default it searches the standard enabled repositories defined in /etc/yum.conf and /etc/yum.repos.d/*repo
Examples
To install all the packages for debugging the kernel:
# debuginfo-install kernel ... --> Running transaction check ---> Package kernel-debuginfo.i586 0:2.6.29.4-167.fc11 set to be updated --> Processing Dependency: kernel-debuginfo-common-i586 = 2.6.29.4-167.fc11 for package: kernel-debuginfo-2.6.29.4-167.fc11.i586 ---> Package kernel-debuginfo.i586 0:2.6.29.5-191.fc11 set to be updated --> Processing Dependency: kernel-debuginfo-common-i586 = 2.6.29.5-191.fc11 for package: kernel-debuginfo-2.6.29.5-191.fc11.i586 --> Running transaction check ---> Package kernel-debuginfo-common.i586 0:2.6.29.4-167.fc11 set to be updated --> Processing Dependency: kernel-debuginfo-common-i586 = 2.6.29.4-167.fc11 for package: kernel-debuginfo-2.6.29.4-167.fc11.i586 ---> Package kernel-debuginfo-common.i586 0:2.6.29.5-191.fc11 set to be updated --> Finished Dependency Resolution kernel-debuginfo-2.6.29.4-167.fc11.i586 from fedora-debuginfo has depsolving problems --> Missing Dependency: kernel-debuginfo-common-i586 = 2.6.29.4-167.fc11 is needed by package kernel-debuginfo-2.6.29.4-167.fc11.i586 (fedora-debuginfo) ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: kernel-debuginfo i586 2.6.29.4-167.fc11 fedora-debuginfo 296 M kernel-debuginfo i586 2.6.29.5-191.fc11 updates-debuginfo 296 M Installing for dependencies: kernel-debuginfo-common i586 2.6.29.5-191.fc11 updates-debuginfo 36 M Transaction Summary ================================================================================ Install 3 Package(s) Update 0 Package(s) Remove 0 Package(s)
Notes
This command must be run as root.