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.

CN115185638BActive Publication Date: 2026-01-16UNIONTECH SOFTWARE TECH CO LTD
3 Cites 0 Cited by

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

Technical Problem

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.

Method used

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.

Benefits of technology

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.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The application discloses a method for obtaining a call stack when simulating running an application program and a computing device. The computing device comprises a first architecture processor and runs a first operating system. A second application program running a second operating system is simulated and run through a simulator. The method comprises the following steps: converting second architecture instructions of the compatibility layer and the second application program into first architecture instructions through the simulator and executing the first architecture instructions; in response to an interruption of the first architecture processor, debugging the simulator and obtaining an input extended command; executing the extended command to obtain current second architecture registers of a second architecture site from an interruption site of the first architecture processor; and obtaining a call stack of the second architecture instructions of the compatibility layer or the second application program based on the current second architecture registers. According to the technical scheme of the application, in the debugging process of the simulator, an error site of the second architecture instructions can be intuitively observed in the interruption site.
Need to check novelty before this filing date? Find Prior Art