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

GDB target function call doesn't support structure returns values #73

Open
shahab-vahedi opened this issue Aug 15, 2023 · 0 comments
Open

Comments

@shahab-vahedi
Copy link
Member

shahab-vahedi commented Aug 15, 2023

This is similar to GDB gets invalid return value when calling function that returns "double complex".

The issue is that GDB doesn't support invocation of functions that return structure. According to ABI, in this case caller should allocate space for the structure and pass its address in R0 register, shifting the rest of arguments in registers. Currently GDB simply doesn't handle this case.

I don't have a test case, but I see this in GDB code.

kolesov

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

No branches or pull requests

1 participant