| ARRIS Enterprises, Inc. Confidential Information |
Cross-compiling GDBThe GNU Project Debugger (GDB) allows you to see what is going on 'inside' another program while it executes -- or what another program was doing at the moment it crashed. This is useful when trying to find out why the program crashed. This tutorial describes how to cross-compile GDB. Cross-compiling is the term used when compiling a program for an architecture other than that of the host computer's. In this case, the architecture of the STB. To use GDB to debug a program on the STB, GDB needs to run on the STB too. The cross-compilation of GDB involves two steps. First the ncurses library is compiled, then GDB is compiled. The step-by-step examples are provided for both ST- and Broadcom-based STBs as below. For Broadcom-based STBs (vip43x2)
Install GDB to bootimageAdd following IIP into your bootimage configuration and build to boot image.
Assuming that your boot image configuration includes support for ssh, it can be used to access a command prompt on the STB after it has booted up. From the command prompt you can run GDB. |