Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Run/Reconnect to toolbar? #192

Open
hrw opened this issue Dec 8, 2023 · 9 comments · May be fixed by #206
Open

Add Run/Reconnect to toolbar? #192

hrw opened this issue Dec 8, 2023 · 9 comments · May be fixed by #206
Assignees

Comments

@hrw
Copy link
Contributor

hrw commented Dec 8, 2023

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
Copy link
Owner

epasveer commented Dec 8, 2023

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 epasveer self-assigned this Dec 8, 2023
@hrw
Copy link
Contributor Author

hrw commented Dec 8, 2023

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

In such case first button is "Continue".

@epasveer
Copy link
Owner

epasveer commented Dec 8, 2023

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
Copy link
Owner

epasveer commented Dec 9, 2023

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
Copy link
Owner

epasveer commented Dec 9, 2023

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
Copy link
Contributor Author

hrw commented Dec 11, 2023

Thanks. Reconnect button works fine.

Will open other issues.

@epasveer
Copy link
Owner

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

@epasveer
Copy link
Owner

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

@epasveer
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants