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/Ada] Document ada_remove_trailing_digits more


This patch just explains what the parameters mean...

gdb/ChangeLog:

        * ada-lang.c (ada_remove_trailing_digits): Expand documentation.

Tested on x86_64-linux. Checked in.

---
 gdb/ChangeLog  |    4 ++++
 gdb/ada-lang.c |    5 ++++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d10df1c..3c8f30d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-01  Joel Brobecker  <brobecker@adacore.com>
+
+	* ada-lang.c (ada_remove_trailing_digits): Expand documentation.
+
 2011-06-30  Tom Tromey  <tromey@redhat.com>
 
 	* varobj.c (varobj_create): Call do_cleanups on early exit path.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index a3234fb..4f6e161 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -900,11 +900,14 @@ is_lower_alphanum (const char c)
   return (isdigit (c) || (isalpha (c) && islower (c)));
 }
 
-/* Remove either of these suffixes:
+/* ENCODED is the linkage name of a symbol and LEN contains its length.
+   This function saves in LEN the length of that same symbol name but
+   without either of these suffixes:
      . .{DIGIT}+
      . ${DIGIT}+
      . ___{DIGIT}+
      . __{DIGIT}+.
+
    These are suffixes introduced by the compiler for entities such as
    nested subprogram for instance, in order to avoid name clashes.
    They do not serve any purpose for the debugger.  */
-- 
1.7.1


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