зеркало из https://github.com/github/ruby.git
* addr2line.c (rb_dump_backtrace_with_lines): output line at once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0358381472
Коммит
65a277d717
|
@ -1,3 +1,7 @@
|
|||
Fri Mar 22 00:04:15 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* addr2line.c (rb_dump_backtrace_with_lines): output line at once.
|
||||
|
||||
Thu Mar 21 23:17:08 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* thread.c (ruby_kill): get rid of deadlock on signal 0.
|
||||
|
|
10
addr2line.c
10
addr2line.c
|
@ -619,16 +619,16 @@ rb_dump_backtrace_with_lines(int num_traces, void **trace, char **syms)
|
|||
line_info_t *line = &lines[i];
|
||||
|
||||
if (line->line > 0) {
|
||||
fprintf(stderr, "%s ", syms[i]);
|
||||
if (line->filename) {
|
||||
if (line->dirname && line->dirname[0]) {
|
||||
fprintf(stderr, "%s/", line->dirname);
|
||||
fprintf(stderr, "%s %s/%s:%d\n", syms[i], line->dirname, line->filename, line->line);
|
||||
}
|
||||
else {
|
||||
fprintf(stderr, "%s %s:%d\n", syms[i], line->filename, line->line);
|
||||
}
|
||||
fprintf(stderr, "%s", line->filename);
|
||||
} else {
|
||||
fprintf(stderr, "???");
|
||||
fprintf(stderr, "%s ???:%d\n", syms[i], line->line);
|
||||
}
|
||||
fprintf(stderr, ":%d\n", line->line);
|
||||
} else {
|
||||
fprintf(stderr, "%s\n", syms[i]);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче