2

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 %.

Ashish Tanwer
  • 29
  • 1
  • 5
  • I stumbled here because of gdb/mi gdb server difference question. I think the answer below is useful. Maybe accept it as appreciation of his help?? :) (Click the check beside it) – tambalolo Sep 17 '13 at 23:42

1 Answers1

5

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.

dbrank0
  • 9,026
  • 2
  • 37
  • 55
  • Hi @dbrank0, it worked for me after choosing 'gdb server', am using Fedora-21 32 bit OS and Eclipse Luna. Thanks for the comments. up-voted! – Java.beginner Feb 03 '15 at 10:59