summaryrefslogtreecommitdiff
path: root/addr2line.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-26 03:28:50 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-26 03:28:50 (GMT)
commit086301ac73c34bc2231f98b67d56b50c65480cc1 (patch)
tree33963ae1dfbf3cf87c8f5873272cfa45db492bea /addr2line.h
parentf8f3585416d93af69f2d0dce595ea933c3d43694 (diff)
* addr2line.c: added to show source filename and line number of
functions in backtrace. [ruby-dev:42625] a patch from shinichiro.h <shinichiro.hamaji AT gmail.com> * addr2line.h: ditto. * common.mk: add addr2line.$(OBJEXT). * configure.in: check dl_iterate_phdr. * vm_dump.c (rb_vm_bugreport): use rb_dump_backtrace_with_lines in addr2line.c when the binary is ELF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.h')
-rw-r--r--addr2line.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/addr2line.h b/addr2line.h
new file mode 100644
index 0000000..cbb18e5
--- /dev/null
+++ b/addr2line.h
@@ -0,0 +1,21 @@
+/**********************************************************************
+
+ addr2line.h -
+
+ $Author$
+
+ Copyright (C) 2010 Shinichiro Hamaji
+
+**********************************************************************/
+
+#ifndef RUBY_ADDR2LINE_H
+#define RUBY_ADDR2LINE_H
+
+#ifdef __ELF__
+
+void
+rb_dump_backtrace_with_lines(int num_traces, void **traces, char **syms);
+
+#endif /* __ELF__ */
+
+#endif /* RUBY_ADDR2LINE_H */