A method for obtaining a call stack when a simulation application is running and a computing device
By obtaining the call stack of the second architecture registers during simulator debugging, the problem of not being able to intuitively view the error context of Windows software x86 instructions on ARM architecture Linux systems is solved, enabling intuitive error viewing in the interrupt context.
Patent Information
- Application Number
- CN202210768798.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2042-06-30
AI Technical Summary
On Linux systems based on the ARM architecture, when running the Wine compatibility layer via box86 emulation, it is impossible to directly observe the x86 instruction error state of the Windows software, resulting in frequent runtime errors.
By inputting extended commands during the debugging process of the simulator, the second architecture registers of the interrupt context of the first architecture processor are obtained. Based on these registers, stack backtracking is performed to obtain the call stack of the second architecture instructions of the compatibility layer or application.
This invention enables the direct acquisition of the call stack of the second architecture instructions of the compatibility layer or application during simulation, allowing for a direct view of the error situation and solving the problem of the inability to view the error situation directly in existing technologies.