aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-06-05 01:17:55 +0000
committerDoug Evans <dje@google.com>2012-06-05 01:17:55 +0000
commit4aad0dfce556cbd58b789830818cf311aff077e2 (patch)
tree3bf6ea214d57410beec912ac3b3c05a73d3e5380 /gdb/buildsym.c
parentb741167bcb01616614947cfa750aceb94f39d0cb (diff)
downloadgdb-4aad0dfce556cbd58b789830818cf311aff077e2.zip
gdb-4aad0dfce556cbd58b789830818cf311aff077e2.tar.gz
gdb-4aad0dfce556cbd58b789830818cf311aff077e2.tar.bz2
* buildsym.c (make_blockvector): Add comment.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 20fabb7..f1fb4be 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -496,10 +496,13 @@ make_blockvector (struct objfile *objfile)
= addrmap_create_fixed (pending_addrmap, &objfile->objfile_obstack);
else
BLOCKVECTOR_MAP (blockvector) = 0;
-
+
/* Some compilers output blocks in the wrong order, but we depend on
their being in the right order so we can binary search. Check the
- order and moan about it. */
+ order and moan about it.
+ Note: Remember that the first two blocks are the global and static
+ blocks. We could special case that fact and begin checking at block 2.
+ To avoid making that assumption we do not. */
if (BLOCKVECTOR_NBLOCKS (blockvector) > 1)
{
for (i = 1; i < BLOCKVECTOR_NBLOCKS (blockvector); i++)