InfiniTimeOrg / InfiniTimeOrg/InfiniTime

Using GDB debugger in devcontainer does not load source map

Open
#2,044 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
3.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Verification
  • I searched for similar issues (including closed issues) and found none was relevant.
Introduce the issue

As discussed in #1587 debugging from the devcontainer still does not properly load the source map. My guess was/is that the pinetime-app-1.x.x.map file is the source/symbol file but gdb errors out with can't read symbols: file format not recognized.

Does GDB need additional configuring or is this not the correct source file for debugging with DGB?

Preferred solution

No response

Version

No response

Contributor guide

Open the contributing guide

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.

Research direction

Start by reviewing the devcontainer debugging setup and the discussion in #1587, then reproduce the failure using GDB with pinetime-app-1.x.x.map. Determine which source or symbol file GDB should load and whether additional configuration is required; done means debugging from the devcontainer loads the source and symbols without the format error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, docker
Domain
devops, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.