`
haoningabc
  • 浏览: 1445218 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

gdb log

    博客分类:
  • gdb
gdb 
阅读更多
有时候比如使用gdb的时候
查看help很长,

比如
help  info
可能想grep 很麻烦
虽然gdb可以使用
shell pwd
shell ls
调用系统命令
但是不能用管道和gdb命令交互
所以打印出log 再grep log 比较简单
如下
(gdb) show logging
Future logs will be written to gdb.txt.
Logs will be appended to the log file.
Output will be logged and displayed.
(gdb) set logging file gdb1.txt
(gdb) set logging on
Copying output to gdb.txt.
(gdb) help info
Generic command for showing things about the program being debugged.

List of info subcommands:

info address -- Describe where symbol SYM is stored
info all-registers -- List of all registers and their contents
info args -- Argument variables of current stack frame
...


参考http://stackoverflow.com/questions/7120673/gdb-pipe-output-of-internal-command-to-the-shell-command

help info
help set

info proc 看进程
分享到:
评论

相关推荐

    gdb调试和执行分离-示例程序

    gdb执行和调试窗口分离的示例代码。使用方式见,以下链接: http://blog.csdn.net/qq123386926/article/details/50017465

    Debugging with GDB --2002年5.11

    s Remote log s ARM s Hitachi H8/300 s Connecting to Hitachi boards s Using the E7000 in-circuit emulator s Special GDB commands for Hitachi micros s H8/500 s Intel i960 s Startup with Nindy s Options ...

    gdb_graphs:使用gdb和python可视化CC ++程序的函数调用流

    gen_graph.py描述使用 graphviz 点...─ LICENSE├── README.md├── requiments.txt└── test ├── test.c └── test.log动机我想查看OS源(用C,C ++编写)的调用图,该源连接了一层内的API和跨层的API。

    gdbdump-ruby:使用gdb从活动的ruby进程或核心文件中转储C级和Ruby级回溯

    用法Usage: gdbdump [options] [ pid | /path/to/ruby pid | /path/to/ruby core ] -d, --[no-]debug print debug log (default: false) -x, --gdbinit FILE path to ruby repo's .gdbinit (default: some of ruby ...

    log2mem:CC ++高速低延迟轻量级内存映射诊断记录器

    使用调试器(例如gdb)单步执行代码将大大降低执行速度。 因此,如果仅当其线程以正常速度交互时才出现错误,则通常通过降低程序速度来抑制该错误。 同样,printf / std :: cout语句也有成本; 字符串被构造并写入...

    GDB_DomainCleanup

    GDB_DomainCleanup.py -c“ C:\ Testing \ Connections \ myGDB.sde” -l“ C:\ Testing \ DuplicateDomain.log” -d 命令行参数: -c:地理数据库连接-SDE,文件或个人地理数据库 -l:日志文件-未使用的域输出...

    wayland-debug:一个命令行工具,可帮助调试Wayland客户端和服务器

    它直接与GDB集成,或者可以解析以WAYLAND_DEBUG=1运行的wayland应用程序/合成器的输出 例子 使用GDB(推荐) 这将使您的程序启动一个GDB实例 ./main.py -g program 在出现的GDB提示中,只需输入run即可运行程序 ...

    参数均衡滤波器的频率响应(传递函数)_matlab

    f = logspace(log10(100),log10(10000),401); f0 = 1000; GdB = 3; Q = 0.5; filtRespParamEQBJ(f,f0,GdB,Q); 将中心频率设置为f0=1000 Hz,峰值升压设置为GdB=3 dB,质量因子设置为Q=0.5,通过找到升压为1.5 dB的两...

    release-1900-x64-gdal-3-1-mapserver-7-6.zip

    MSVC 2015 x64 This package contains all the required files to successfully run MapServer and GDAL related applications on Windows....changelog.txt - Text file about the package changes.

    Code Medic:GDB的图形界面-开源

    Code Medic为gdb最重要的功能提供了优雅的图形界面,并与Code Crusader集成。 常见问题解答:...

    KE问题分析工具 GAT.rar

    KE问题分析工具,此工具用于GDB分析MTK LogDB KE问题。

    GCC使用教程 Word文档格式

    1. gcc 1. makefile写法 2. gcc_egcs使用 3. gdb使用

    DebuggingWithGDB 6.8-2008

    Summary of gdb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Free Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 ...

    Delphi/Kylix Database Development 附书代码

    Data子目录包含数据文件conman.gdb(许多示例应用程序要使用这个 数据文件)和用于创建这个数据库的SQL脚本(conman.sql)。 如果在自己的驱动器上维持这样的目录结构,示例程序应该可以运行。它们使用相对路 径..\...

    Exportizer v8.0.4.zip

    Exportizer是一款专业好用的数据库管理软件。...软件界面美观简洁、简单全面、实用方便,可快速...使用额外的命令行行选项,如/Silent,/LogFile,/ CloseOnError等 使用附加的额外的出口模式和空插入。 Exportizer截图

    iphone4(ios7.1.2),逆向工具deb离线包

    5.Gnu Debugger(gdb),在这个源中cydia.radare.org,版本为1708,低版本不支持ios4.3+。 6.adv-cmds:ps命令可以查看进程信息; 7.darwin cc tools:otools可以查看可执行文件的详细信息; 8.Link Identity Editor:...

    Qemu-1.0.1 for windows

    Qemu 1.0.1 Windows ...usage: qemu [options] [disk_image] 'disk_image' is a raw hard disk image for IDE hard disk 0 Standard options: -h or -help display this help and exit -version display version ...

    unix实验报告.doc

    科 技 学 院 实验报告 ( 2014-- 2015年度第1学期) 名 称: UNIX/LINUX体系及编程 院 系: 信息工程系 班 级: 学 号: 学生姓名: 指导教师: 姜丽梅 设计周数: 3 成 绩: 日期:2014年 12 月10日... 文件为/var/log/c

Global site tag (gtag.js) - Google Analytics