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:
    gdb
  2. Load the symbol information for the application:
    file my_application
  3. If you're debugging remotely, set the target:
    target qnx com_port_specifier | host:port | pty
  4. If you're debugging remotely, 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:
    run

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus