Using GDB
来源:互联网 发布:大数据分析足球比赛 编辑:程序博客网 时间:2024/05/16 06:28
Using GDB
date: 2004-2-14
========================
Compile for DGB
gcc -g file.c -o prog
Start GDB
gdb -qd progname
Begin Debuging
run
kill
Breakpoints
break [filename:] linenum [if expr]
break [filename:] funcname [if expr]
continue
delete
disable
info breakpoints
Watch Codes
list [linenum | funcname]
backtrace
where
info
print /fmt <expr>
print arg[i]
print arg@10
print arg[1]@10
print $1-1
watch
whatis
ptype
Flow Control
step
next
until
finish finish current function
down
up
call funcname [args]
finish
return value
Change Variable Value
set variable varname= value
date: 2004-2-14
========================
Compile for DGB
gcc -g file.c -o prog
Start GDB
gdb -qd progname
Begin Debuging
run
kill
Breakpoints
break [filename:] linenum [if expr]
break [filename:] funcname [if expr]
continue
delete
disable
info breakpoints
Watch Codes
list [linenum | funcname]
backtrace
where
info
print /fmt <expr>
print arg[i]
print arg@10
print arg[1]@10
print $1-1
watch
whatis
ptype
Flow Control
step
next
until
finish finish current function
down
up
call funcname [args]
finish
return value
Change Variable Value
set variable varname= value
- Using GDB
- Dump memory using gdb
- qemu debugging using gdb
- Using GDB in Visual Studio
- how to find deadlock scenario using gdb
- using gdb to debug c program
- Debug mexFunction of matlab using gdb
- [Excerpt]3 approaches using gdb to debug child process
- how to show source code when using gdb
- 关于gdb警告not using untrusted file "xx/.gdbinit"
- Debugging your program using Valgrind gdbserver and GDB
- Using GDB <Address 0xffffffff out of bounds>
- How to Debug Java -JNI using GDB on linux ?
- eclipse调试C++代码报错: Could not determine GDB version using command: gdb --version
- GDB
- gdb
- GDB
- GDB
- Visio2000 学习笔记
- winXP+IIS+PHP+MYSQL配置指南 作者:yizusong
- VIM学习笔记
- Intel为何不使用GDT中的第一个Descriptor?
- Using Bash Shell
- Using GDB
- MSN SPACE
- Linux Commands
- 第一个数是前两个数之和,求第30个数
- AJAX需要组件技术作为支撑
- 分析表格形式的实验数据
- delphi的消息处理的相关函数
- 3G介绍
- ASP.NET中Datagrid常见错误