


I’ll go overĭifferent approaches people use to download and setup GDB and explain the prosĪnd cons of each of them. Tricky, especially if we want advanced features to be available. In this article, we’re interested in running GDB on an x86-64 or arm64 host andĭebugging an arm-v7m (32-bit) target. We need a version of GDB that supports the target architecture of the program In embedded engineering, we often want to target a foreign architecture (eg, theĮmbedded device, connected to some debug probe).

GDB, the GNU Project Debugger, is by default typically compiled to target the
