0
1.1kviews
Write a note on GNU debuggers.
1 Answer
0
1views

i) GNU is a project launched in 1984 to create free Unix like OS. This project gave birth to free software evolution.

ii) GNU debugger or gdb is software that allows user to take control of a program; start and stop a program, insert breakpoints, evaluate variables.

iii) It can debug programs written in C, C++.

iv) 2 ways of running gdb.

  • Running gdb on a target.
  • Configuring gdb to run a target application.

v) GNU debugger is used to debug PC applications, but is not used in this way in embedded systems, because running gdb requires too many resources for an embedded system.

vi) For an application run by gdb, gdb has full control over an application, running on the same system.

vii) Application is not separate; it is actually run and controlled by gdb.

viii) The GNU debugger can be used master/slave fashion.

Modes in master/ slave fashion:

  • The gdb server, named gdbserver will be compiling for that system and copied on the target platform. Here a method of communication is needed to the host compiler computer. The target must have a working network configuration or a VART connection.

  • On the debugging PC, gdb must be run and connected to gdb server. ARM version of gdb must be used.

  • GDB server is often software and some hardware implementations exist and are connected to USB port of development system.

To Run the GDB:

Serial output: gdb server/ dev/ tty SO.

Network devices: gdbserver: 2345

GNU debugger is a command line program used to communicate with a gdb server.

To launch gdb:

arm-none-eabi-gdb

(gdb) target 192.168.0.2:2345

(gdb) run

Please log in to add an answer.