Skip to content

pkg/proc: add support for additional stack-switching functions on loong64 - #4100

Merged
derekparker merged 1 commit into
go-delve:masterfrom
yelvens:loong64-switchstack
Aug 21, 2025
Merged

derekparker merged 1 commit into
go-delve:masterfrom
yelvens:loong64-switchstack

Conversation

@yelvens

@yelvens yelvens commented Aug 21, 2025

Copy link
Copy Markdown
Contributor

These functions involve stack switching on loong64 and must be recognized for Delve to correctly unwind and produce accurate stack traces.

With Go 1.19 and later, cgo is fully supported on linux/loong64, so supporting these functions is required for proper debugging on this platform.

Fixes #4099

@aarzilli aarzilli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Rerun _scripts/gen-backend_test_health.go

…ng64

Extend loong64SwitchStack to handle:
- cgo-related functions (Fixes go-delve#4099)
- runtime.mstart, runtime.newstack, runtime.systemstack
@yelvens
yelvens force-pushed the loong64-switchstack branch from 65dd641 to 3b230b7 Compare August 21, 2025 10:20
@yelvens

yelvens commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

Rerun _scripts/gen-backend_test_health.go

Done, thanks for the review!

@aarzilli aarzilli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, LGTM

@derekparker derekparker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@derekparker
derekparker merged commit fbcae21 into go-delve:master Aug 21, 2025
@yelvens
yelvens deleted the loong64-switchstack branch August 26, 2025 03:08
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.

TestCgoStacktrace* skipped on linux/loong64

3 participants