seer icon indicating copy to clipboard operation
seer copied to clipboard

Add Run/Reconnect to toolbar?

Open hrw opened this issue 1 year ago • 9 comments

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).

hrw avatar Dec 08 '23 09:12 hrw

Hi Marcin.

(Thanks for trying Seer)

I just want to clarify what you're asking.

image

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 ?

epasveer avatar Dec 08 '23 16:12 epasveer

I connect to remote target (QEMU) as I use Seer to debug firmware.

In such case first button is "Continue".

hrw avatar Dec 08 '23 18:12 hrw

Ah, with the connect/attach mode.

So a button to reconnect/reattach. I'll play around with it and will get back to you.

epasveer avatar Dec 08 '23 18:12 epasveer

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. image

If functions like the ALT+D button.

epasveer avatar Dec 09 '23 18:12 epasveer

A couple side point.

  1. I'll likely revisit how Seer attaches/detaches to gdbservers and process pids. I'm not entirely happy with what I currently have.
  2. The embedded market is on my radar. I'm keen on any suggests to make Seer more palatable for embedded use.

epasveer avatar Dec 09 '23 18:12 epasveer

Thanks. Reconnect button works fine.

Will open other issues.

hrw avatar Dec 11 '23 07:12 hrw

I'm going to combine #162, #192, and #194 together, as they are some what related to the same parts of the code.

epasveer avatar Jan 20 '24 15:01 epasveer

I've changed PR #206 to a draft. This task will take some time.

epasveer avatar Jan 28 '24 16:01 epasveer

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.

epasveer avatar Jan 28 '24 16:01 epasveer