1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* addr2line.c (parse_debug_line_cu): explicitly specify signed char

because DWARF's line_Base is signed char and char maybe unsigned.
  patched by Rei Odaira. [ruby-dev:48068] [Bug #9654]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-03-24 04:18:28 +00:00
parent d550d72249
commit d2b1deda92
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Mon Mar 24 13:13:36 2014 NARUSE, Yui <naruse@ruby-lang.org>
* addr2line.c (parse_debug_line_cu): explicitly specify signed char
because DWARF's line_Base is signed char and char maybe unsigned.
patched by Rei Odaira. [ruby-dev:48068] [Bug #9654]
Sun Mar 23 11:03:50 2014 Kohei Suzuki <eagletmt@gmail.com> Sun Mar 23 11:03:50 2014 Kohei Suzuki <eagletmt@gmail.com>
* vm_method.c (rb_method_entry_get_without_cache): me->klass is 0 * vm_method.c (rb_method_entry_get_without_cache): me->klass is 0

View file

@ -294,7 +294,7 @@ parse_debug_line_cu(int num_traces, void **traces,
is_stmt = default_is_stmt = *(unsigned char *)p; is_stmt = default_is_stmt = *(unsigned char *)p;
p++; p++;
line_base = *(char *)p; line_base = *(signed char *)p;
p++; p++;
line_range = *(unsigned char *)p; line_range = *(unsigned char *)p;