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

ruby-changes:52801

From: naruse <ko1@a...>
Date: Fri, 12 Oct 2018 09:01:56 +0900 (JST)
Subject: [ruby-changes:52801] naruse:r65009 (trunk): fix

naruse	2018-10-12 08:55:45 +0900 (Fri, 12 Oct 2018)

  New Revision: 65009

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65009

  Log:
    fix

  Modified files:
    trunk/addr2line.c
Index: addr2line.c
===================================================================
--- addr2line.c	(revision 65008)
+++ addr2line.c	(revision 65009)
@@ -850,7 +850,7 @@ static uint32_t https://github.com/ruby/ruby/blob/trunk/addr2line.c#L850
 read_uint24(char **ptr) {
     const unsigned char *p = (const unsigned char *)*ptr;
     *ptr = (char *)(p + 3);
-    return (get_uint8(p) << 16) | get_uint16(p+1);
+    return (*p << 16) | get_uint16(p+1);
 }
 
 static uint32_t
@@ -1131,13 +1131,13 @@ debug_info_reader_read_value(DebugInfoRe https://github.com/ruby/ruby/blob/trunk/addr2line.c#L1131
         set_uint_value(v, read_uint64(&reader->p));
         break;
       case DW_FORM_implicit_const:
-        set_sint_value(v, read_sleb128(&reader->q));
+        set_int_value(v, sleb128(&reader->q));
         break;
       case DW_FORM_loclistx:
-        set_uint_value(v, read_uleb128(&reader->q));
+        set_uint_value(v, read_uleb128(reader));
         break;
       case DW_FORM_rnglistx:
-        set_uint_value(v, read_uleb128(&reader->q));
+        set_uint_value(v, read_uleb128(reader));
         break;
       case DW_FORM_ref_sup8:
         set_uint_value(v, read_uint64(&reader->p));

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

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