This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Update documentation in struct quick_symbol_functions


Paul sent me this documentiion update when I asked him a question
about compare_names in ada-lang.c. Basically, the symbols are sorted
using strcmp_iw_ordered, so the comment is updated to reflect that.

(and of course, it's only once I've committed the change that
I remembered that it's strcmp_iw_ordered, not strcmp_iw. I will
fix immediately).

gdb/ChangeLog:

        * symfile.h (struct quick_symbol_functions): Update the
        documentation for field map_matching_symbols.

---
 gdb/ChangeLog |    5 +++++
 gdb/symfile.h |    8 ++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cf90f8b..ce61c09 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-28  Paul Hilfinger  <hilfinger@adacore.com>
+
+	* symfile.h (struct quick_symbol_functions): Update the
+	documentation for field map_matching_symbols.
+
 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
 
 	* ada-lang.c (compare_names): Fix wrong return value in case
diff --git a/gdb/symfile.h b/gdb/symfile.h
index accd20e..923bfc9 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -228,7 +228,7 @@ struct quick_symbol_functions
 
   /* Find global or static symbols in all tables that are in NAMESPACE 
      and for which MATCH (symbol name, NAME) == 0, passing each to 
-     CALLBACK, reading in partial symbol symbol tables as needed.  Look
+     CALLBACK, reading in partial symbol tables as needed.  Look
      through global symbols if GLOBAL and otherwise static symbols.
      Passes NAME, NAMESPACE, and DATA to CALLBACK with each symbol
      found.  After each block is processed, passes NULL to CALLBACK.
@@ -236,10 +236,10 @@ struct quick_symbol_functions
      strcmp_iw(x,y) == 0 --> MATCH(x,y) == 0.  ORDERED_COMPARE, if
      non-null, must be an ordering relation compatible with strcmp_iw
      in the sense that  
-            strcmp(x,y) == 0 --> ORDERED_COMPARE(x,y) == 0 
+            strcmp_iw(x,y) == 0 --> ORDERED_COMPARE(x,y) == 0
      and 
-            strcmp(x,y) <= 0 --> ORDERED_COMPARE(x,y) <= 0
-     (allowing strcmp(x,y) < 0 while ORDERED_COMPARE(x, y) == 0).
+            strcmp_iw(x,y) <= 0 --> ORDERED_COMPARE(x,y) <= 0
+     (allowing strcmp_iw(x,y) < 0 while ORDERED_COMPARE(x, y) == 0).
      CALLBACK returns 0 to indicate that the scan should continue, or
      non-zero to indicate that the scan should be terminated.  */
 
-- 
1.7.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]