dzabraev / mcgdb

combined gdb with mcedit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mcgdb

Tui fornt-end for debugger gdb based on midnight commander.

Two windows are shown in this picture. Upper left window has started gdb and right window has started src window. Black mark with red text in line 543 illustrates breakpoint. The current execution position is marked with color like breakpoint.

You can add and delete breakpoints by produce clicks on columns with line numbers.

INSTALL

  1. install nix package manager https://nixos.org/nix/
  2. wget https://github.com/dzabraev/mcgdb/releases/download/v1.4-beta/mcgdb.nix
  3. nix-env -f mcgdb.nix -iA mcgdb
  4. run $ mcgdb a.out in your shell

getting started

Just use $ mcgdb instead $ gdb. When you invoke mcgdb additional windows will be opened automatically.

gdb commands

mcgdb add several commands in gdb. Type (gdb) help mcgdb to get command documentation.

(gdb) mcgdb open aux
(gdb) mcgdb open src
(gdb) mcgdb open asm

In this project mcedit is readonly. And onto ordinary keys we add additional functionality.

  1. s == step
  2. n == next
  3. c == continue
  4. u == up
  5. d == down
  6. b == break

Focus editor and type c. This action produce (gdb) continue command in gdb.

Key b gets current cursor line in editor and filename of opened file and produce (gdb) break FILENAME:LINE

About

combined gdb with mcedit

License:Other


Languages

Language:C 66.6%Language:Makefile 20.7%Language:Shell 6.3%Language:M4 3.0%Language:Python 2.9%Language:C++ 0.1%Language:Yacc 0.1%Language:Ruby 0.1%Language:Emacs Lisp 0.1%Language:Perl 0.0%Language:Smalltalk 0.0%Language:JavaScript 0.0%Language:NewLisp 0.0%Language:Slash 0.0%Language:SystemVerilog 0.0%Language:GDB 0.0%Language:Objective-C 0.0%Language:sed 0.0%Language:Nix 0.0%