Skip to content

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

@shahab-vahedi

Description

@shahab-vahedi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions