gdb 명령어 질문입니다.

익명 사용자의 이미지

gdb에서


(gdb) x/xw

이 x/xw 는 무엇을 명령하는 거예요?

세벌의 이미지

Anti-Lock의 이미지

help x 하니 설명 나오네요.

(gdb) help x
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), s(string)
  and z(hex, zero padded on the left).
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".