Skip to content

docs: add GDB stub and source-level debugging to reproducing-runs tutorial#315

Merged
Wenzel merged 2 commits intointel:mainfrom
Wenzel:docs/gdb-stub-debugging
Mar 29, 2026
Merged

docs: add GDB stub and source-level debugging to reproducing-runs tutorial#315
Wenzel merged 2 commits intointel:mainfrom
Wenzel:docs/gdb-stub-debugging

Conversation

@Wenzel
Copy link
Copy Markdown
Contributor

@Wenzel Wenzel commented Mar 27, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the EDK2 UEFI “Reproducing Runs” tutorial to document attaching a GDB remote stub and performing source-level debugging, and adjusts the tutorial build script to copy EDK2 sources locally to support symbol/source mapping.

Changes:

  • Copy /edk2 sources out of the Docker build container to enable source-level debugging workflows.
  • Expand the reproducing-runs tutorial with sections on GDB stub usage and loading symbols/source paths.
  • Add a cross-link from the “Disable Auto-Continue in Repro Mode” config option to the new GDB-stub walkthrough.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
examples/tutorials/edk2-uefi/build.sh Copies EDK2 sources from the container to the host for GDB source mapping.
docs/src/tutorials/edk2-uefi/reproducing-runs.md Adds detailed GDB-stub + source-level debugging walkthrough to the repro tutorial.
docs/src/config/common-options.md Links config option docs to the new tutorial walkthrough section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…orial

Restructures the reproducing-runs page into three sections: testcase
listing, SIMICS reverse debugging, and live GDB stub debugging. Adds a
new source-level debugging section covering OS awareness setup,
module load address discovery, .text RVA extraction, symbol loading
with add-symbol-file, and source path mapping with set substitute-path.

Updates build.sh to copy edk2 sources from the Docker container for
use with GDB set substitute-path, with a rm -rf guard against the
docker cp stale directory bug.

Updates common-options.md repro_auto_continue entry to link forward
to the new GDB stub walkthrough.
@Wenzel Wenzel force-pushed the docs/gdb-stub-debugging branch from 59aa728 to d2d4964 Compare March 27, 2026 17:53
Fix MD013 line length, MD048 code fence style, MD040 missing language
tags, and MD010 hard tabs in reproducing-runs.md.

Link "repro functionality" to analyzing-results.md instead of the
auto-continue option. Gate edk2 source copy on COPY_SOURCES=1 env var
to avoid large generated directories on every build. Add edk2/ to
.gitignore.
@Wenzel Wenzel merged commit 82ae62d into intel:main Mar 29, 2026
24 checks passed
@Wenzel Wenzel deleted the docs/gdb-stub-debugging branch March 29, 2026 12:05
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 this pull request may close these issues.

2 participants