subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1367236 - /subversion/trunk/tools/dev/gdb-py/svndbg/printers.py
Date Mon, 30 Jul 2012 19:33:34 GMT
Author: julianfoad
Date: Mon Jul 30 19:33:33 2012
New Revision: 1367236

URL: http://svn.apache.org/viewvc?rev=1367236&view=rev
Log:
* tools/dev/gdb-py/svndbg/printers.py
  (SvnRangelistPrinter, build_libsvn_printers): Update to make use of the
    new svn_rangelist_t type.

Modified:
    subversion/trunk/tools/dev/gdb-py/svndbg/printers.py

Modified: subversion/trunk/tools/dev/gdb-py/svndbg/printers.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/gdb-py/svndbg/printers.py?rev=1367236&r1=1367235&r2=1367236&view=diff
==============================================================================
--- subversion/trunk/tools/dev/gdb-py/svndbg/printers.py (original)
+++ subversion/trunk/tools/dev/gdb-py/svndbg/printers.py Mon Jul 30 19:33:33 2012
@@ -234,8 +234,7 @@ class SvnMergeinfoPrinter:
     """for svn_mergeinfo_t"""
     def __init__(self, val):
         self.hash_p = val
-        # We don't actually have an svn_rangelist_t in Subversion...
-        self.svn_rangelist_t = gdb.lookup_type('apr_array_header_t')
+        self.svn_rangelist_t = gdb.lookup_type('svn_rangelist_t')
 
     def to_string(self):
         if self.hash_p == 0:
@@ -342,11 +341,10 @@ def build_libsvn_printers():
                                 SvnMergeRangePrinter)
     libsvn_printer2.add_printer('svn_merge_range_t *', r'^svn_merge_range_t \*$',
                                 SvnMergeRangePrinter)
-    # If we define an 'svn_rangelist_t' type in Subversion, we'll want these:
-    #libsvn_printer2.add_printer('svn_rangelist_t', r'^svn_rangelist_t$',
-    #                            SvnRangelistPrinter)
-    #libsvn_printer2.add_printer('svn_rangelist_t *', r'^svn_rangelist_t \*$',
-    #                            SvnRangelistPrinter)
+    libsvn_printer2.add_printer('svn_rangelist_t', r'^svn_rangelist_t$',
+                                SvnRangelistPrinter)
+    libsvn_printer2.add_printer('svn_rangelist_t *', r'^svn_rangelist_t \*$',
+                                SvnRangelistPrinter)
     libsvn_printer2.add_printer('svn_mergeinfo_t', r'^svn_mergeinfo_t$',
                                 SvnMergeinfoPrinter)
     libsvn_printer2.add_printer('svn_mergeinfo_catalog_t', r'^svn_mergeinfo_catalog_t$',



Mime
View raw message