diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-07-01 18:24:52 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-07-01 18:24:52 +0000 |
commit | c90092fe9e8d9932f59c5927c67d83c231e47407 (patch) | |
tree | 9d4784a3ac93d56d0c546d3de76ce9153a5f0b40 /gdb/ada-lang.c | |
parent | 7d6b320b79bc7bb87a7c8985c70036e56e4c2e9f (diff) | |
download | gdb-c90092fe9e8d9932f59c5927c67d83c231e47407.zip gdb-c90092fe9e8d9932f59c5927c67d83c231e47407.tar.gz gdb-c90092fe9e8d9932f59c5927c67d83c231e47407.tar.bz2 |
Document ada_remove_trailing_digits more
gdb/ChangeLog:
* ada-lang.c (ada_remove_trailing_digits): Expand documentation.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 5 |
1 files changed, 4 insertions, 1 deletions
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. */ |