epasveer / seer

Seer - a gui frontend to gdb
GNU General Public License v3.0
2.07k stars 69 forks source link

Add Run/Reconnect to toolbar? #192

Open hrw opened 7 months ago

hrw commented 7 months ago

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

epasveer commented 7 months ago

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 ?

hrw commented 7 months ago

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

In such case first button is "Continue".

epasveer commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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.
hrw commented 7 months ago

Thanks. Reconnect button works fine.

Will open other issues.

epasveer commented 6 months ago

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

epasveer commented 5 months ago

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

epasveer commented 5 months ago

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.