summaryrefslogtreecommitdiffstats
path: root/architecture.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-05-08Add 64-bit ARM architecture constantsMalfurious1-0/+35
Signed-off-by: Malfurious <m@lfurio.us>
2024-05-08Parameterize architecture-specific detailsMalfurious1-0/+60
Abstract architecture details into architecture.h and add x86 constants. This is slightly complicated by the fact that 64-bit hosts can run 32-bit code, so we do still need to resolve some values dynamically. The architecture_info() function is intented to address this, and performs parameter lookups based on the current state of the guest process. Resolving values on a per-process-state basis is important due to the process model under Linux. If we fork to debug a 32-bit program, the forked process will be native 64-bit until the execve system call. And of course, the process is then free to exec anything it likes later on as well. Signed-off-by: Malfurious <m@lfurio.us>