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...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
24.05.2024
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
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 |