Skip to content

Commit

Permalink
Merge branch 'master' of github.com:JuliaLang/julia
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Feb 1, 2016
2 parents 0778a89 + 325d24c commit 874b222
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@

#include "julia.h"
#include "julia_internal.h"
#ifdef _OS_LINUX_
# define UNW_LOCAL_ONLY
# include <libunwind.h>
#endif

#include <string>
#include <sstream>
Expand Down Expand Up @@ -881,11 +885,19 @@ static void jl_getDylibFunctionInfo(char **name, char **filename, size_t *line,
#endif
lookup_pointer(context, name, line, filename, inlinedat_line, inlinedat_file, pointer+slide,
fbase == jl_sysimage_base, fromC);
if (jl_sysimage_base == fbase && sysimg_fvars && saddr) {
for (size_t i = 0; i < sysimg_fvars_n; i++) {
if (saddr == sysimg_fvars[i]) {
*outer_linfo = sysimg_fvars_linfo[i];
break;
if (jl_sysimage_base == fbase && sysimg_fvars) {
#ifdef _OS_LINUX_
unw_proc_info_t pip;
if (!saddr && unw_get_proc_info_by_ip(unw_local_addr_space,
pointer, &pip, NULL) == 0)
saddr = (void*)pip.start_ip;
#endif
if (saddr) {
for (size_t i = 0; i < sysimg_fvars_n; i++) {
if (saddr == sysimg_fvars[i]) {
*outer_linfo = sysimg_fvars_linfo[i];
break;
}
}
}
}
Expand Down

0 comments on commit 874b222

Please sign in to comment.