Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

properly skip leading spaces in Frame string #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rnpnr
Copy link
Contributor

@rnpnr rnpnr commented Dec 28, 2024

Hi, I know I'm the one who changed the thread views 'Frame' string last but I recently got an aarch64 laptop and while running gf on it I noticed what I was doing was incorrect. I also realized it was incorrect for the main thread on amd64 because GDB special cases the thread which contains the 'main' function in it's frame.

I've tested this on both amd64 and aarch64 and this gives the correct results in both cases (just the function's name on aarch64 and the function's address and name on amd64 excluding the main thread which doesn't list the function's address).

On aarch64 gdb does not start each frame with an address since it
can just follow the link register. Skipping characters up to the
first '0' is obviously incorrect in this case.
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.

1 participant