Issue 135480
Summary [libunwind] unw_regname is defined differently to libgcc libunwind
Labels new issue
Assignees
Reporter spauka
    It seems like LLVM libunwind is designed to be compatible with the libgcc libunwind api, as suggested in [/libunwind/include/libunwind.h](https://github.com/llvm/llvm-project/blob/339f58de16ac7a31869d189bec6cad7696958546/libunwind/include/libunwind.h#L9):
```
// 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?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to