fix incorrect comments in minsyms.h
authorTom Tromey <tromey@redhat.com>
Mon, 16 Jun 2014 08:07:50 +0000 (02:07 -0600)
committerTom Tromey <tromey@redhat.com>
Mon, 16 Jun 2014 13:53:36 +0000 (07:53 -0600)
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.

gdb/ChangeLog
gdb/minsyms.h

index 434d202cee796b6768a641694590f8b6eda8a776..a9993903cd23c650edab0d1b9e66de27272c282e 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-16  Tom Tromey  <tromey@redhat.com>
+
+       * minsyms.h (prim_record_minimal_symbol)
+       (prim_record_minimal_symbol_and_info): Update comments.
+
 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
 
        * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
index 289dcae38c54aaa34082466508aefe2c8a1b910f..807e5eea6bdc6b7f0ff6fa730104efaa3958e269 100644 (file)
@@ -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 *,