Using GDB to read MSRs

后端 未结 3 501
花落未央
花落未央 2020-12-31 17:52

Is there some way to read the x86-64 model-specific registers, specifically IA32_FS_BASE and IA32_GS_BASE, while debugging a program using GDB?

Less preferable would

3条回答
  •  孤城傲影
    2020-12-31 18:10

    Since gdb 8 the registers $fs_base and $gs_base are also available. These work in code dumps too, not just live programs.

提交回复
热议问题