cs01 / gdbgui

Browser-based frontend to gdb (gnu debugger). Add breakpoints, view the stack, visualize data structures, and more in C, C++, Go, Rust, and Fortran. Run gdbgui from the terminal and a new tab will open in your browser.

Home Page:https://gdbgui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instead of PID, use PID file.

Rybok opened this issue · comments

Is your feature request related to a problem? Please describe.
I have a project that before executing the main executable I need to run a few commands to setup the hardware. The easiest way for me to debug my main executable is to attach to it as it runs using the pid... But it is a hassle since the pid changes with every start.

Describe the solution you'd like
Every time my program starts I write a pid file. For example: /tmp/mainexec.pid.
If I could just specify this file in gdbgui instead of the PID, it would help a lot.

Describe alternatives you've considered
ps ax | grep "main exec name"