栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

util-linux调试

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

util-linux调试

Debian下调试util-linux 通过dpkg-buildpackage覆盖编译选项,按照-g -O0编译
cat /etc/dpkg/buildflags.conf 
SET CFLAGS -g -O0 -fdebug-prefix-map=/home/uos/work/util-linux/gerrit/util-linux=. -fstack-protector-strong -Wformat -Werror=format-security
SET CXXFLAGS -g -O0 -fdebug-prefix-map=/home/uos/work/util-linux/gerrit/util-linux=. -fstack-protector-strong -Wformat -Werror=format-security
SET FCFLAGS -g -O0 -fdebug-prefix-map=/home/uos/work/util-linux/gerrit/util-linux=. -fstack-protector-strong
SET FFLAGS -g -O0 -fdebug-prefix-map=/home/uos/work/util-linux/gerrit/util-linux=. -fstack-protector-strong
SET GCJFLAGS -g -O0 -fdebug-prefix-map=/home/uos/work/util-linux/gerrit/util-linux=. -fstack-protector-strong
SET OBJCFLAGS -g -O0 -fdebug-prefix-map=/home/uos/work/util-linux/gerrit/util-linux=. -fstack-protector-strong -Wformat -Werror=format-security
SET OBJCXXFLAGS -g -O0 -fdebug-prefix-map=/home/uos/work/util-linux/gerrit/util-linux=. -fstack-protector-strong -Wformat -Werror=format-security
配置环境变量nostrip
export DEB_BUILD_OPTIONS=nostrip
配置日志等级
export LIBBLKID_DEBUG=all
   all      [0xffff] : info about all subsystems
   cache    [0x0004] : blkid tags cache
   config   [0x0008] : config file utils
   dev      [0x0010] : device utils
   devname  [0x0020] : /proc/partitions evaluation
   devno    [0x0040] : conversions to device name
   evaluate [0x0080] : tags resolving
   help     [0x0001] : this help
   lowprobe [0x0100] : superblock/raids/partitions probing
   buffer   [0x2000] : low-probing buffers
   probe    [0x0200] : devices verification
   read     [0x0400] : cache parsing
   save     [0x0800] : cache writing
   tag      [0x1000] : tags utils
参考源码中documentation/howto-debug.txt
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/468590.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号