Working with GDB

This topic describes how to use GDB to debug bare-metal applications.

To debug bare-metal applications:

  1. Create a sample Hello World project.
  2. Select the application and click Run > Debug As > Launch on Hardware (GDB)
  3. By default, GDB shipped with in SDK is used with default port, but user can specify the GDB and the port in the Debugger tab in Debug Configurations.
    Note: Default ports used of GDB server for different architecture are as follows:
    • arm - 3000
    • a64 - 3001
    • microblaze - 3002
  4. Click the Debug button, to start debugging the application.