简体   繁体   中英

How to dump all the XMM registers in gdb?

I can dump the all the integer registers in gdb with just:

info registers

for the xmm registers (intel) I need a file like:

print $xmm0
print $xmm1
...
print $xmm15

and then source that file. Is there an easier way?

(gdb) apropos registers
collect -- Specify one or more data items to be collected at a tracepoint
core-file -- Use FILE as core dump for examining memory and registers
info all-registers -- List of all registers and their contents
...

The last one is the one you want.

精美的手册说:

(gdb) info all-registers

If you want to print out only the xmm registers then you can use info registers sse (or the abbreviation ir sse or even irs ).

Similarly to print out only the fpu registers you can use info registers float (or irf ).

(In the above commands, sse and float are register groups , which you can list using maintenance print reggroups .)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM