Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1239515
  • 博文数量: 264
  • 博客积分: 10772
  • 博客等级: 上将
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-25 11:54
文章分类

全部博文(264)

文章存档

2012年(4)

2011年(51)

2010年(31)

2009年(57)

2008年(51)

2007年(70)

分类: C/C++

2009-02-24 16:40:29

Examine memory: x/FMT ADDRESS.
ADDRESS is an expression for the memory address to examine.
FMT is a repeat count followed by a format letter and a size letter.
Format letters are o(octal), x(hex), d(decimal), u(unsigned decimal),
  t(binary), f(float), a(address), i(instruction), c(char) and s(string).
Size letters are b(byte), h(halfword), w(word), g(giant, 8 bytes).
The specified number of objects of the specified size are printed
according to the format.

Defaults for format and size letters are those previously used.
Default count is 1.  Default address is following last thing printed
with this command or "print".

(gdb) x/32xb p_stSessionCtx->stProxyDB.list_addr
0x8bb5dc8:    0x36    0x30    0x30    0x36    0x00    0x00    0x00    0x00
0x8bb5dd0:    0x00    0x00    0x30    0x30    0x30    0x36    0x30    0x30
0x8bb5dd8:    0x37    0x00    0x00    0x00    0x00    0x00    0x00    0x30
0x8bb5de0:    0x30    0x30    0x00    0x00    0x29    0x00    0x00    0x00

(gdb) p/x p_stSessionCtx->stProxyDB.list_addr
$5 = 0x8bb5dc8

(gdb) x/32cb p_stSessionCtx->stProxyDB.list_addr
0x8bb5dc8:54 '6'    48 '0'    48 '0'    54 '6'    0 '\0'    0 '\0'    0 '\0'    0'\0'
0x8bb5dd0:0 '\0'    0 '\0'    48 '0'    48 '0'    48 '0'    54 '6'    48 '0'    48'0'
0x8bb5dd8:55 '7'    0 '\0'    0 '\0'    0 '\0'    0 '\0'    0 '\0'    0 '\0'    48'0'
0x8bb5de0:48 '0'    48 '0'    0 '\0'    0 '\0'    41 ')'    0 '\0'    0 '\0'    0'\0'
阅读(11457) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~