Skip to content

cmd/internal/obj/arm64: add frame pointers #10110

Closed
@4ad

Description

@4ad
Member

RISC architectures fare much worse in gdb compared to x86. Right now we can't have stack traces in gdb, on arm64. Adding frame pointers would fix this.

Activity

self-assigned this
on Mar 8, 2015
added this to the Go1.5Maybe milestone on Mar 8, 2015
4ad

4ad commented on Mar 8, 2015

@4ad
MemberAuthor

Replaces 4ad/go#101

minux

minux commented on Mar 8, 2015

@minux
Member
rsc

rsc commented on Jun 29, 2015

@rsc
Contributor

Too late for Go 1.5.

modified the milestones: Unplanned, Go1.5Maybe on Jun 29, 2015
zhongweiy

zhongweiy commented on Jun 3, 2016

@zhongweiy
Contributor

https://go-review.googlesource.com/#/c/20193/ fixes backtrace in gdb under arm64. And it turns out that the break backtrace is caused by incorrect handling ra position relative to CFA during function call in DWARF '.debug_frame' under arm64.

I find frame pointer is still needed in linux perf tool to unwind stack when using "--call-graph fp". But it could be workarounded by telling perf unwind stack using DWARF info.

4ad

4ad commented on Jun 3, 2016

@4ad
MemberAuthor

Yes, we we add frame pointers in 1.8.

gopherbot

gopherbot commented on Oct 12, 2017

@gopherbot
Contributor

Change https://golang.org/cl/61511 mentions this issue: build: support frame-pointer for arm64

modified the milestones: Unplanned, Go1.11 on Dec 4, 2017
added
NeedsFixThe path to resolution is known, but the work has not been done.
on Jun 30, 2018
modified the milestones: Go1.11, Go1.12 on Jun 30, 2018
locked and limited conversation to collaborators on Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bradfitz@rsc@minux@4ad@zhongweiy

        Issue actions

          cmd/internal/obj/arm64: add frame pointers · Issue #10110 · golang/go