how to examine memory location when utilizing gdb
来源:互联网 发布:金蝶智慧记mac版 编辑:程序博客网 时间:2024/05/17 16:03
When debugging sometimes it’s important to examine the memory location to diagnose programs of abnormal behaviors.
How to fulfill it is via x /nfu addr commands
Here x is an acronym for examine, addr is an expression which can be evaluated to the corresponding memory location.
Now let depict the options
n is the repeat count, which specifies how much memory to display, pay attention that the quantity is affected by the unit specified by u option
f indicates the display format, which has the same role as in the print commands, that’s ‘x’ for hexadecimal, ‘d’ for decimal, ‘u’ for unsigned integer, ‘o’ for octal, ‘t’ for binary, ‘a’ for address, ‘c’ for ascii, ‘f’ for float, ‘s’ for string; plus ‘i’ for machine instructions. Default is ‘x’.
u specifies the unit size: b for byte, h for half-word (machine word, usually 32-bits, so it’s two bytes), w for word (four bytes), g for giant words, that’s eight bytes.
- how to examine memory location when utilizing gdb
- how to show source code when using gdb
- gdb - Examine
- How to prevent memory leaks when reloading web applications(“java.lang.OutOfMemoryError: PermGen")
- FFmpeg Understanding(4. How to compile and run testing files utilizing FFMPEG in VC?)
- When and How to Micromanage
- DM6467 memory map HOW-TO
- DM6467 memory map HOW-TO
- How to troubleshoot memory problems
- how to debug memory-leak
- How to use cuda-gdb
- How to get Location Using Location API JSR 179
- gdb dump binary memory to file
- how to config when use hibernate+sqlserver2005
- How to config languages when build BSP
- how to disable the button when submitting
- Qt5: how to handle fonts when deploying?
- When and how to use a ThreadLocal
- MFC Attach()函数和Detach()函数
- javascript 设计模式
- WORD中公式与正文对齐
- android.app.ServiceConnectionLeaked: that was originally bound here
- DWORD get_fattime()
- how to examine memory location when utilizing gdb
- 连接网址 王世林 老罗的Android之旅
- Ansys显示立体模型
- C# 求两个线段之间的夹角
- spring 依赖注入总结
- jsf浏览器文件下载的实现及问题!
- 有关推挽输出、开漏输出、复用开漏输出、复用推挽输出以及上拉输入、下拉输入、浮空输入、模拟输入区别
- VS 2008 cannot load msptls.dll
- 头文件.h与源文件.cpp