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 gets invalid return value when calling function that returns"double complex" #72

Open
shahab-vahedi opened this issue Aug 15, 2023 · 1 comment

Comments

@shahab-vahedi
Copy link
Member

shahab-vahedi commented Aug 15, 2023

GDB testcase gdb.base/callfuncs.exp fails because it calls function that returns a double complex value, but GDB reads returned value in correctly. It seems that GDB doesn't properly implement ABI with regard of returns values > 2 words. OTOH, call of function that returns long double complex works fine.

kolesov

@shahab-vahedi
Copy link
Member Author

On the second thought, may be GDB handles this properly - GDB's generic logic treats shadow argument as a regular argument, so such a function wouldn't have a return value. That would explain why in the references STAR, long double complex works fine, unlike double complex. In any way, this should be checked and confirmed if this really works.

In the arc_push_dummy_call I see that struct case is handled, but it is not handled in the arc_extract_return_value.

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