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

ruby-changes:22898

From: nobu <ko1@a...>
Date: Thu, 8 Mar 2012 16:44:24 +0900 (JST)
Subject: [ruby-changes:22898] nobu:r34946 (trunk): * .gdbinit (rb_numtable_entry): update for recent refactoring of

nobu	2012-03-08 16:44:08 +0900 (Thu, 08 Mar 2012)

  New Revision: 34946

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

  Log:
    * .gdbinit (rb_numtable_entry): update for recent refactoring of
      st_table.

  Modified files:
    trunk/.gdbinit
    trunk/ChangeLog

Index: .gdbinit
===================================================================
--- .gdbinit	(revision 34945)
+++ .gdbinit	(revision 34946)
@@ -625,18 +625,18 @@
   set $rb_numtable_key = 0
   set $rb_numtable_rec = 0
   if $rb_numtable_tbl->entries_packed
-    set $rb_numtable_p = $rb_numtable_tbl->bins
-    while $rb_numtable_p && $rb_numtable_p < $rb_numtable_tbl->bins+$rb_numtable_tbl->num_entries
-      if (st_data_t)$rb_numtable_p[0] == $rb_numtable_id
-	set $rb_numtable_key = (st_data_t)$rb_numtable_p[0]
-	set $rb_numtable_rec = (st_data_t)$rb_numtable_p[1]
+    set $rb_numtable_p = $rb_numtable_tbl->as.packed.bins
+    while $rb_numtable_p && $rb_numtable_p < $rb_numtable_tbl->as.packed.bins+$rb_numtable_tbl->num_entries
+      if $rb_numtable_p.k == $rb_numtable_id
+	set $rb_numtable_key = $rb_numtable_p.k
+	set $rb_numtable_rec = $rb_numtable_p.v
 	set $rb_numtable_p = 0
       else
-	set $rb_numtable_p = $rb_numtable_p + 2
+	set $rb_numtable_p = $rb_numtable_p + 1
       end
     end
   else
-    set $rb_numtable_p = $rb_numtable_tbl->bins[$rb_numtable_id % $rb_numtable_tbl->num_bins]
+    set $rb_numtable_p = $rb_numtable_tbl->as.big.bins[$rb_numtable_id % $rb_numtable_tbl->num_bins]
     while $rb_numtable_p
       if $rb_numtable_p->key == $rb_numtable_id
 	set $rb_numtable_key = $rb_numtable_p->key
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34945)
+++ ChangeLog	(revision 34946)
@@ -1,3 +1,8 @@
+Thu Mar  8 16:44:02 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* .gdbinit (rb_numtable_entry): update for recent refactoring of
+	  st_table.
+
 Wed Mar  7 22:41:50 2012  CHIKANAGA Tomoyuki  <nagachika00@g...>
 
 	* lib/xmlrpc/client.rb (module XMLRPC): fix typo.

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

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