aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-06-16 02:07:50 -0600
committerTom Tromey <tromey@redhat.com>2014-06-16 07:53:36 -0600
commit99f4262f2c7e3457f45bd9921889456285d8b025 (patch)
treefd5f671e4f5d97cda510220fa79517bddd6f1917 /gdb/minsyms.h
parente1279d1d6b5f9205c6603cc661ce7af64e09b5e8 (diff)
downloadgdb-99f4262f2c7e3457f45bd9921889456285d8b025.zip
gdb-99f4262f2c7e3457f45bd9921889456285d8b025.tar.gz
gdb-99f4262f2c7e3457f45bd9921889456285d8b025.tar.bz2
fix incorrect comments in minsyms.h
minsyms.h incorrectly claims that a couple of functions call prim_record_minimal_symbol_full with COPY_NAME=0 -- but actually they pass 1. Passing 1 is the correct behavior, so this patch fixes the documentation. I'm checking this in as obvious. 2014-06-16 Tom Tromey <tromey@redhat.com> * minsyms.h (prim_record_minimal_symbol) (prim_record_minimal_symbol_and_info): Update comments.
Diffstat (limited to 'gdb/minsyms.h')
-rw-r--r--gdb/minsyms.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/minsyms.h b/gdb/minsyms.h
index 289dcae..807e5ee 100644
--- a/gdb/minsyms.h
+++ b/gdb/minsyms.h
@@ -102,7 +102,7 @@ struct minimal_symbol *prim_record_minimal_symbol_full
/* Like prim_record_minimal_symbol_full, but:
- uses strlen to compute NAME_LEN,
- - passes COPY_NAME = 0,
+ - passes COPY_NAME = 1,
- and passes a default SECTION, depending on the type
This variant does not return the new symbol. */
@@ -113,7 +113,7 @@ void prim_record_minimal_symbol (const char *, CORE_ADDR,
/* Like prim_record_minimal_symbol_full, but:
- uses strlen to compute NAME_LEN,
- - passes COPY_NAME = 0. */
+ - passes COPY_NAME = 1. */
struct minimal_symbol *prim_record_minimal_symbol_and_info
(const char *,