Skip to content

[libunwind] unw_regname is defined differently to libgcc libunwind #135480

Open
@spauka

Description

@spauka

It seems like LLVM libunwind is designed to be compatible with the libgcc libunwind api, as suggested in /libunwind/include/libunwind.h:

// Compatible with libunwind API documented at:
//   http://www.nongnu.org/libunwind/man/libunwind(3).html

However the definition of unw_regname is different between the two libraries.

LibGCC libunwind:

const char *unw_regname(unw_regnum_t);

LLVM libunwind:

const char *unw_regname(unw_cursor_t *, unw_regnum_t) LIBUNWIND_AVAIL;

Not sure if this is intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions