seer
seer copied to clipboard
Add Run/Reconnect to toolbar?
I have several quick debug sessions with one binary. Would be great to have a toolbar button to run/reconnect.
Same as File->Debug and then pressing Launch (Alt-D + Enter now).
Hi Marcin.
(Thanks for trying Seer)
I just want to clarify what you're asking.
There is already a "Run" and "Start" button on the toolbar.
"Run" will restart your debugging session with the same binary. It does not stop in main(), but it honors any previous breakpoints you may have set.
"Start" will restart your debugging session with the same binary. It stops in main() with a temporary breakpoint, plus it honors any previous breakpoints you may have set.
Are you asking for something different from these two?
Note, you can quickly change the program's arguments with ALT+A, then click on "Run" or "Start".
Or, perhaps you're asking for a toolbar button (called "Debug") that is the same as ALT+D ?
I connect to remote target (QEMU) as I use Seer to debug firmware.
In such case first button is "Continue".
Ah, with the connect/attach mode.
So a button to reconnect/reattach. I'll play around with it and will get back to you.
I've created a branch in GitHub if you're adventurous to try.
If you've been using "git clone" to get the source, then I think these are the steps to get the branch.
$ git clone https://github.com/epasveer/seer.git (in case you you don't have it anymore)
$ git pull
$ git checkout 192-add-runreconnect-to-toolbar
Then build, as normal.
$ cd src/build
$ cmake ..
$ make
You should see the 'Reconnect' button.
If functions like the ALT+D button.
A couple side point.
- I'll likely revisit how Seer attaches/detaches to gdbservers and process pids. I'm not entirely happy with what I currently have.
- The embedded market is on my radar. I'm keen on any suggests to make Seer more palatable for embedded use.
Thanks. Reconnect button works fine.
Will open other issues.
I'm going to combine #162, #192, and #194 together, as they are some what related to the same parts of the code.
I've changed PR #206 to a draft. This task will take some time.
Hi @hrw,
I've updated the 192-add-runreconnect-to-toolbar branch to remember the breakpoints and reload them on the "reconnect".
If you want, you can checkout that branch and give it a try.