What does gdb 'x' command do?

前端 未结 2 1127
抹茶落季
抹茶落季 2021-02-02 13:56

I am reading a book about hacking and it has a chapter about assembly.

Following is my tiny program written in C.

#include 

int main(int          


        
2条回答
  •  生来不讨喜
    2021-02-02 14:41

    (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) and s(string),
      T(OSType), A(floating point values in hex).
    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".
    

提交回复
热议问题