From: Tom Tromey Date: Mon, 16 Jun 2014 08:07:50 +0000 (-0600) Subject: fix incorrect comments in minsyms.h X-Git-Tag: binutils-2_25~1032 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99f4262f2c7e3457f45bd9921889456285d8b025;p=platform%2Fupstream%2Fbinutils.git 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 * minsyms.h (prim_record_minimal_symbol) (prim_record_minimal_symbol_and_info): Update comments. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 434d202..a999390 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-06-16 Tom Tromey + + * minsyms.h (prim_record_minimal_symbol) + (prim_record_minimal_symbol_and_info): Update comments. + 2014-06-14 Eli Zaretskii * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile 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 *,