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

Start GDB session with API #4864

Merged

Conversation

JackThomson2
Copy link
Contributor

@JackThomson2 JackThomson2 commented Oct 22, 2024

Allow a GDB debugging session to be started over API

Changes

Moved the GDB address config inside the machine-config section.

This allows a user to start a GDB debugging session using the API and are not limited to just using the config file

Reason

Allow for GDB to be setup when using config file is not possible

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md.

PR Checklist

  • If a specific issue led to this PR, this PR closes the issue.
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this
    PR.
  • API changes follow the Runbook for Firecracker API changes.
  • User-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.
  • New TODOs link to an issue.
  • Commits meet
    contribution quality standards.

  • This functionality cannot be added in rust-vmm.

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.10%. Comparing base (ae30a82) to head (bb2ca0c).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4864   +/-   ##
=======================================
  Coverage   84.09%   84.10%           
=======================================
  Files         251      251           
  Lines       28074    28080    +6     
=======================================
+ Hits        23610    23616    +6     
  Misses       4464     4464           
Flag Coverage Δ
5.10-c5n.metal 84.67% <100.00%> (+<0.01%) ⬆️
5.10-m5n.metal 84.65% <100.00%> (+<0.01%) ⬆️
5.10-m6a.metal 83.96% <100.00%> (+<0.01%) ⬆️
5.10-m6g.metal 80.78% <100.00%> (+<0.01%) ⬆️
5.10-m6i.metal 84.65% <100.00%> (-0.01%) ⬇️
5.10-m7g.metal 80.78% <100.00%> (+<0.01%) ⬆️
6.1-c5n.metal 84.67% <100.00%> (+<0.01%) ⬆️
6.1-m5n.metal 84.65% <100.00%> (+<0.01%) ⬆️
6.1-m6a.metal 83.97% <100.00%> (+<0.01%) ⬆️
6.1-m6g.metal 80.78% <100.00%> (+<0.01%) ⬆️
6.1-m6i.metal 84.65% <100.00%> (-0.01%) ⬇️
6.1-m7g.metal 80.78% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JackThomson2 JackThomson2 marked this pull request as ready for review October 22, 2024 13:02
src/vmm/src/vmm_config/machine_config.rs Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
@JackThomson2 JackThomson2 force-pushed the feat/gdb_api_config branch 2 times, most recently from 3db0436 to 08ff34e Compare October 22, 2024 14:29
@pb8o pb8o added the Status: Awaiting author Indicates that an issue or pull request requires author action label Oct 23, 2024
@JackThomson2 JackThomson2 added Status: Awaiting review Indicates that a pull request is ready to be reviewed and removed Status: Awaiting author Indicates that an issue or pull request requires author action labels Oct 28, 2024
pb8o
pb8o previously approved these changes Oct 31, 2024
kalyazin
kalyazin previously approved these changes Oct 31, 2024
Allow a GDB debugging session to be started over API

Signed-off-by: Jack Thomson <[email protected]>
Add an entry for the new microVM guest kernel debugging feature

Signed-off-by: Jack Thomson <[email protected]>
@JackThomson2 JackThomson2 dismissed stale reviews from kalyazin and pb8o via bb2ca0c October 31, 2024 11:01
@JackThomson2 JackThomson2 merged commit 3d0421f into firecracker-microvm:main Oct 31, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting review Indicates that a pull request is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants