NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Julia on NetBSD?
On Fri, Feb 20, 2015 at 10:17:09AM +0000, Emmanuel Dreyfus wrote:
> DLLEXPORT size_t rec_backtrace_ctx(ptrint_t *data, size_t maxsize, unw_context_t
> *uc)
> {
> unw_cursor_t cursor;
> unw_word_t ip;
> size_t n=0;
>
> unw_init_local(&cursor, uc);
> do {
> if (n >= maxsize)
> break;
> if (unw_get_reg(&cursor, UNW_REG_IP, &ip) < 0) {
> break;
> }
> data[n++] = ip;
> } while (unw_step(&cursor) > 0);
> return n;
> }
So ifdef and port it to our libunwind ;-)
Martin
Home |
Main Index |
Thread Index |
Old Index