Commit a3c9ade9 authored by Ruediger Pluem's avatar Ruediger Pluem
Browse files

Merge r1811540, r1811541 from trunk:

* It needs to be the dereferenced node

* Convert to int before using
Submitted by: rpluem


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1811641 13f79535-47bb-0310-9956-ffa450edef68
parent 0cd75e71
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -444,7 +444,7 @@ class DumpPoolAndChilds (gdb.Command):
      if node != 0:
        while node != 0:
          noded = node.dereference()
          kb = kb + (4 << int(node['index']))
          kb = kb + (4 << int(noded['index']))
          node = noded['next']
      i = i + 1
    self.total_free_blocks[salloc] = kb
@@ -461,7 +461,7 @@ class DumpPoolAndChilds (gdb.Command):
    done = 0
    while done == 0:
      noded = node.dereference()
      size = size + (4096 << noded['index'])
      size = size + (4096 << int(noded['index']))
      free = free + (noded['endp'] - noded['first_avail'])
      nodes = nodes + 1
      node = noded['next']