gdb/mi gdb server debugging

2k Views Asked by At

What is the difference between gdb mi and gdb server? Can both be used for local debugging?

I have facing problem in troubleshooting the debugging with gdb server on Red Hat. The debugging launcher stops at 72 %.

1

There are 1 best solutions below

1
On

For local debugging you need neither MI or gdb server. You only need gdb.

MI is used by various GUIs/IDEs to communicate with gdb. This basically changes commands so they can be better parsed by machines (hence the name Machine Interface).

Gdbserver is used to debug remote systems. You only run gdbserver on remote (target) machine (this can for example be some embedded system running linux) and then you connect to gdbserver from GDB on your workstation (serial, ethernet or similar). This allows you to debug on your workstation and only requires target to run simpler gdbserver.