ruby-changes:33358
From: naruse <ko1@a...>
Date: Wed, 26 Mar 2014 19:59:49 +0900 (JST)
Subject: [ruby-changes:33358] naruse:r45437 (trunk): remove break because strtab/symtab is usually the last segment
naruse 2014-03-26 19:59:44 +0900 (Wed, 26 Mar 2014) New Revision: 45437 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45437 Log: remove break because strtab/symtab is usually the last segment Modified files: trunk/addr2line.c Index: addr2line.c =================================================================== --- addr2line.c (revision 45436) +++ addr2line.c (revision 45437) @@ -525,12 +525,6 @@ fill_lines(int num_traces, void **traces https://github.com/ruby/ruby/blob/trunk/addr2line.c#L525 } } - /* j: ....xxx - * 1: debug_line - * 2: .symtab - * 4: .strtab - */ - j = 0; for (i = 0; i < ehdr->e_shnum; i++) { section_name = shstr + shdr[i].sh_name; #ifdef __powerpc64__ @@ -538,17 +532,13 @@ fill_lines(int num_traces, void **traces https://github.com/ruby/ruby/blob/trunk/addr2line.c#L532 #endif if (!strcmp(section_name, ".debug_line")) { debug_line_shdr = shdr + i; - j |= 1; } else if (!strcmp(section_name, ".gnu_debuglink")) { gnu_debuglink_shdr = shdr + i; } else if (!strcmp(section_name, ".symtab")) { symtab_shdr = shdr + i; - j |= 2; } else if (!strcmp(section_name, ".strtab")) { strtab_shdr = shdr + i; - j |= 4; } - if (j == 7) break; } if (symtab_shdr && strtab_shdr) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/