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.
https://gdbgui.com
GNU General Public License v3.0
9.9k stars 499 forks source link

Instead of PID, use PID file. #437

Open Rybok opened 2 years ago

Rybok commented 2 years ago

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"