GDB module to activate frames

Open
#113 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
devtools

Research direction

Read the referenced Folly gdb.py implementation and the GDB documentation on unwinding frames in Python. Then inspect Boost.Context's fiber representation and existing debugging support to determine the integration point. Done means providing two GDB commands that inspect the call stack of a valid boost::context::fiber pointer.

Written by the indexing model from the issue text.

Description

Folly's fibers (based on Boost.Context) have a GDB script to debug fibers. The script only has a few helpers to list fibers and inspect a fiber.

Once we find a valid pointer to a boost::context::fiber in the debugging session, it'd be useful to have two simple GDB commands to inspect its call stack. The lines related to this feature in the Facebook script are: https://github.com/facebook/folly/blob/85465c8ef64be895bd15a0a315f3698fb5dc685f/folly/fibers/scripts/gdb.py#L191-L247 (supporting documentation)

Dominant language
Assembly
Stars
371
Forks
185
Avg merge
4d 13h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/context

All issues in boostorg/context

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.