Heterogeneous code debugging method and device, electronic equipment and storage medium

The invention discloses an efficient heterogeneous code debugging method realized based on a gdb, which is used for connecting the gdb and a gdb server of an instruction set simulator to realize faster debugging of a heterogeneous program. The implementation method comprises the steps that a gdb ter...

Full description

Saved in:
Bibliographic Details
Main Authors DING PENGFEI, CAI SIPEI, BAI YUEJIN
Format Patent
LanguageChinese
English
Published 24.05.2024
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses an efficient heterogeneous code debugging method realized based on a gdb, which is used for connecting the gdb and a gdb server of an instruction set simulator to realize faster debugging of a heterogeneous program. The implementation method comprises the steps that a gdb terminal constructs a heterogeneous debugging command, the heterogeneous debugging command is used for debugging a debugging object, and the debugging object is a scalar SPU program or a vector MPU program; the gdb terminal sends the heterogeneous debugging command to a gdb server; the gdb server analyzes the heterogeneous debugging command and determines a debugging object; the gdb server obtains a program counter corresponding to the debugging object; the register value in the program counter is sent to the gdb terminal; and the gdb terminal debugs the debugging object according to the register value. Debugging of different types of debugging objects can be completed, and heterogeneous program debugging is achieved.
Bibliography:Application Number: CN202311579321