Document ada_remove_trailing_digits more

gdb/ChangeLog:

        * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
This commit is contained in:
Joel Brobecker 2011-07-01 18:24:52 +00:00
parent 7d6b320b79
commit c90092fe9e
2 changed files with 8 additions and 1 deletions

View file

@ -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> 2011-06-30 Tom Tromey <tromey@redhat.com>
* varobj.c (varobj_create): Call do_cleanups on early exit path. * varobj.c (varobj_create): Call do_cleanups on early exit path.

View file

@ -900,11 +900,14 @@ is_lower_alphanum (const char c)
return (isdigit (c) || (isalpha (c) && islower (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}+
. ___{DIGIT}+ . ___{DIGIT}+
. __{DIGIT}+. . __{DIGIT}+.
These are suffixes introduced by the compiler for entities such as These are suffixes introduced by the compiler for entities such as
nested subprogram for instance, in order to avoid name clashes. nested subprogram for instance, in order to avoid name clashes.
They do not serve any purpose for the debugger. */ They do not serve any purpose for the debugger. */