aboutsummaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2019-09-30 11:49:25 -0400
committerSimon Marchi <simon.marchi@efficios.com>2019-09-30 11:49:57 -0400
commit703a86c2fa74e6c998ed24a8823658119f176b2d (patch)
tree7fc9d2839ea1f065fe04c7dafde70fc8f386ef9b /gdb/psymtab.c
parent663f67df1e8a7ac0ab8c8c577817067ca32ea4be (diff)
downloadgdb-703a86c2fa74e6c998ed24a8823658119f176b2d.zip
gdb-703a86c2fa74e6c998ed24a8823658119f176b2d.tar.gz
gdb-703a86c2fa74e6c998ed24a8823658119f176b2d.tar.bz2
gdb: re-write add_psymbol_to_list doc, move it to header file
The comment above the add_psymbol_to_list function seems outdated and misleading, here's an attempt at improving it. gdb/ChangeLog: * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h. * psympriv.h (add_psymbol_to_list): Move comment here and update it.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r--gdb/psymtab.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 031dbd9..31b6d59 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -1605,11 +1605,7 @@ append_psymbol_to_list (std::vector<partial_symbol *> *list,
OBJSTAT (objfile, n_psyms++);
}
-/* Add a symbol with a long value to a psymtab.
- Since one arg is a struct, we pass in a ptr and deref it (sigh).
- The only value we need to store for psyms is an address.
- For all other psyms pass zero for COREADDR.
- Return the partial symbol that has been added. */
+/* See psympriv.h. */
void
add_psymbol_to_list (const char *name, int namelength, bool copy_name,