2012-01-19 Gary Benson <gbenson@redhat.com>
authorGary Benson <gary@redhat.com>
Thu, 19 Jan 2012 12:51:04 +0000 (12:51 +0000)
committerGary Benson <gary@redhat.com>
Thu, 19 Jan 2012 12:51:04 +0000 (12:51 +0000)
* mdebugread.c (sort_blocks): Replace integer constants with ones
derived from FIRST_LOCAL_BLOCK.

gdb/ChangeLog
gdb/mdebugread.c

index 120bcbc134784cd61a248839be65e48a73cb5e63..dfce58b66d2447242d53378ef3eecdd37eeb9cee 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-19  Gary Benson  <gbenson@redhat.com>
+
+       * mdebugread.c (sort_blocks): Replace integer constants with ones
+       derived from FIRST_LOCAL_BLOCK.
+
 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
            Jan Kratochvil  <jan.kratochvil@redhat.com>
 
index c95c09b62eddbb3cce54ccfb9d534e15c6ab5f64..e6d3b8c739fd5893ffb2b3b3f8e81a09ba5da5ac 100644 (file)
@@ -4713,7 +4713,7 @@ sort_blocks (struct symtab *s)
 {
   struct blockvector *bv = BLOCKVECTOR (s);
 
-  if (BLOCKVECTOR_NBLOCKS (bv) <= 2)
+  if (BLOCKVECTOR_NBLOCKS (bv) <= FIRST_LOCAL_BLOCK)
     {
       /* Cosmetic */
       if (BLOCK_END (BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK)) == 0)
@@ -4728,7 +4728,7 @@ sort_blocks (struct symtab *s)
    * are very different.  It would be nice to find a reliable test
    * to detect -O3 images in advance.
    */
-  if (BLOCKVECTOR_NBLOCKS (bv) > 3)
+  if (BLOCKVECTOR_NBLOCKS (bv) > FIRST_LOCAL_BLOCK + 1)
     qsort (&BLOCKVECTOR_BLOCK (bv, FIRST_LOCAL_BLOCK),
           BLOCKVECTOR_NBLOCKS (bv) - FIRST_LOCAL_BLOCK,
           sizeof (struct block *),
This page took 0.027532 seconds and 4 git commands to generate.