A quick overview of starting the debugger

To debug an application, do the following:

  1. Start GDB, but don't specify the application as an argument:
  2. Load the symbol information for the application:
    file my_application
  3. Set the target:
    target qnx com_port_specifier | host:port
  4. Send the application to the target:
    upload my_application /tmp/my_application
  5. Set any breakpoints. For example, to set a breakpoint in main():
    set break main
  6. Start the application: