o
odinpkg.dev
packages / library / ogdb__Odin_gdb_debugger_TUI

ogdb__Odin_gdb_debugger_TUI

aeaf7c1library

A simple terminal user interface for the gdb debugger for Odin.

No license · updated 8 months ago

ogdb - Odin gdb debugger TUI

A simple terminal user interface for the gdb debugger for Odin.

Features

  • Developed on Linux but possible also work on MAC

  • All variables shown with types

  • Full stack trace visible and with navegation

  • Odin slices and strings fully supported

  • Watches auto-update on each step

  • Dynamic terminal size support at start up FULL HD a and 4K

  • Two modes of operation:

    1. Load executable program at startup compilled with -debug
    2. Attach to a PID - Process ID already running
  • To search for the PID of a process:

       ps aux | grep ./inf.exe
  • To run the ogdb to attach to a process_pid
        ./ogdb -p <process_id>
  • Allows for Odin Context enable and disabled in local variables
  • Shows parameters values.

Image

./images/ogdb_003.png

Key bindings

Navigation:
 
   j / k  - Scroll source code up / down
   J / K  - Navigate stack frames up / down
 
Execution Control:
 
   r      - Run program
   n      - Next line ( step over )
   s      - Step into function
   f      - Finish ( step out of function )
   c      - Continue execution
   u      - Run until current function returns
   x      - enable / disable odin context var
 
Breakpoints:
 
   l      - Set breakpoint at line
   F      - Set breakpoint at function
   t      - Disable breakpoint at function
   b      - Show/manage breakpoints
 
Watches and Inspection:
 
   w      - Add watch expression
   d      - Delete watch by ID
   W      - Show watch expressions view
   g      - Execute raw GDB command
 
UI:
 
   h      - Toggle this help
   q      - Quit debugger

License

MIT Open Source License

Have fun

Best regards,
Joao Carvalho