[前][次][番号順一覧][スレッド一覧]

ruby-changes:18506

From: naruse <ko1@a...>
Date: Thu, 13 Jan 2011 00:35:18 +0900 (JST)
Subject: [ruby-changes:18506] Ruby:r30528 (trunk): * addr2line.c (get_nth_dirname): decrement the directory index

naruse	2011-01-13 00:35:07 +0900 (Thu, 13 Jan 2011)

  New Revision: 30528

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30528

  Log:
    * addr2line.c (get_nth_dirname): decrement the directory index
      because the index specifies the index of given included_directories
      which is separated by NUL and its index is begun from 1.
      Note that 0 specifies the current directory of the compilation.
      see also http://www.dwarfstd.org/doc/dwarf-2.0.0.pdf

  Modified files:
    trunk/ChangeLog
    trunk/addr2line.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30527)
+++ ChangeLog	(revision 30528)
@@ -1,3 +1,11 @@
+Thu Jan 13 00:32:54 2011  NARUSE, Yui  <naruse@r...>
+
+	* addr2line.c (get_nth_dirname): decrement the directory index
+	  because the index specifies the index of given included_directories
+	  which is separated by NUL and its index is begun from 1.
+	  Note that 0 specifies the current directory of the compilation.
+	  see also http://www.dwarfstd.org/doc/dwarf-2.0.0.pdf
+
 Thu Jan 13 00:06:38 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* io.c (rb_f_syscall): Add warning messages. [ruby-core:34062]
Index: addr2line.c
===================================================================
--- addr2line.c	(revision 30527)
+++ addr2line.c	(revision 30528)
@@ -121,7 +121,7 @@
     if (!dir--) {
 	return "";
     }
-    while (dir) {
+    while (dir--) {
 	while (*p) p++;
 	p++;
 	if (!*p) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]