Skip to content

[Bug]: Usability issues with CDT GDB Adapter and multi-client/multi-core - Part 2 #685

@jreineckearm

Description

@jreineckearm

Description

Collection of some smaller issues with GDB Adapter. Some are related to the just introduced auxiliaryGdb settings. Others are there for a while already. None of them is fatal, but they look scary when seeing them for the first time:

  • 1. https://github.com/Arm-Examples/cmsis-mlek-examples/tree/main/Alif/AppKit_D3/MLEK_AV_DualCore : when you build, load, and debug this, you often see warnings like this: warning: (Internal error: pc 0x8020a6d8 in read in CU, but not in symtab.), warning: (Error: pc 0x8020a6d8 in address map, but not in symtab.)
    Looks like warnings coming from GDB and could point to inconsistent debug info in the binaries. At the very minimum understand the root cause before 1.2.0 release.
    Note: So far only visible when RTOS Views is enabled, for this example RTX5.
  • 2. Easy to accidentally attach to already connected start-core. This is with configurations managed by CMSIS Solution Extension where we have a launch and an attach configuration for the start-core to support both "Load & Debug" and "Load & Run" followed by belated attach. Need to investigate if we can guard connections in this case.
  • 3. pyOCD multi-core launch configs normally have one launch config and one attach config for every additional core in the system. However, if you exit the launched session first, you target access with the attached connection. It may be related to trouble we have on CDT GDB Adapter level if losing a GDB server, where GDB from a certain version on no longer properly crashes. But maybe there is something connected to 5.) which can be done on top.

Some of the issues may be in viewer extensions. But the CDT GDB Adapter needs to become more robust/less noisy, too. The more views are added in future, the more traffic has to be expected and dealt with.

Steps to Reproduce

No response

Expected Behavior

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

CDT GDB AdapterChange is required in the Eclipse CDT.cloud CDT GDB Adapter or its extensionCDT.cloud View ExtensionsChange is required in Eclipse CDT.cloud View Extensions, e.g. Peripheral/Memory Inspector

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions