BinaryAnalysisPlatform / qemu

Official QEMU mirror
Other
9 stars 12 forks source link

store t32/a32 mode when tracing arm #17

Closed thestr4ng3r closed 2 years ago

thestr4ng3r commented 2 years ago

Depends on https://github.com/BinaryAnalysisPlatform/bap-frames/pull/17

This stores, for each frame, the information whether thumb mode is used, so tools reading the traces will be able to select the right disassembler to use for each individual instruction when interworking code is traced.

ivg commented 2 years ago

I have one question though, how will it affect other architectures? Do we plan to emit the modes at all, for example, for x86?

thestr4ng3r commented 2 years ago

The mode field in bap-frames is optional, so I would only emit modes when they can change dynamically during the trace. So for x86 probably not, unless there is a way to switch between 32-bit and 64-bit.