gdbinit / Gdbinit

Gdbinit for OS X, iOS and others - x86, x86_64 and ARM
https://reverse.put.as
1.69k stars 458 forks source link

Documentation explaining the [regs] section #33

Open Geremia opened 7 years ago

Geremia commented 7 years ago

For those new to using gdb, some explanation of the variables of the "regs" section—e.g.:

-----------------------------------------------------------------------------------------------------------------------[regs]
  RAX: 0x0000000000400E70  RBX: 0x0000000000000000  RBP: 0x0000000000402F20  RSP: 0x00007FFFFFFFDB28  o d I t s Z a P c 
  RDI: 0x000000000000000D  RSI: 0x00007FFFFFFFDC08  RDX: 0x00007FFFFFFFDC78  RCX: 0x0000000000000020  RIP: 0x0000000000400E70
  R8 : 0x0000000000402F90  R9 : 0x00007FFFF7DE8770  R10: 0x000000000000013A  R11: 0x000000000000000C  R12: 0x00000000004012B0
  R13: 0x00007FFFFFFFDC00  R14: 0x0000000000000000  R15: 0x0000000000000000
  CS: 0033  DS: 0000  ES: 0000  FS: 0000  GS: 0000  SS: 002B

—would be helpful:

gdbinit commented 7 years ago

There's nothing to explain, read Intel CPU documentation/manuals.