main is not a pubic function, use _start instead
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
925a1e1d70
commit
0fe34c4c3b
@ -623,9 +623,9 @@ rb_dump_backtrace_with_lines(int num_traces, void **traces, char **syms)
|
|||||||
intptr_t main_fbase;
|
intptr_t main_fbase;
|
||||||
char *main_path;
|
char *main_path;
|
||||||
{
|
{
|
||||||
extern int main(int argc, char **argv); /* a function in the main executalbe */
|
extern void _start(void); /* a function in the main executalbe */
|
||||||
Dl_info info;
|
Dl_info info;
|
||||||
dladdr(main, &info);
|
dladdr(_start, &info);
|
||||||
main_fbase = (intptr_t)info.dli_fbase;
|
main_fbase = (intptr_t)info.dli_fbase;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user