* SYMFILE_VERBOSE
@ 2009-06-18 23:31 Doug Evans
2009-06-19 0:21 ` SYMFILE_VERBOSE Paul Pluzhnikov
0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2009-06-18 23:31 UTC (permalink / raw)
To: Paul Pluzhnikov, Tom Tromey; +Cc: gdb
Random minor question of the day:
Is SYMFILE_VERBOSE misnamed (and/or misused) ?
symfile.c has this:
static void
symbol_file_add_main_1 (char *args, int from_tty, int flags)
{
const int add_flags = SYMFILE_MAINLINE | (from_tty ? SYMFILE_VERBOSE : 0);
symbol_file_add (args, add_flags, NULL, flags);
"from_tty" has a specific connotation which doesn't always just mean
"be chatty", and converting it to the name "VERBOSE" might cause
confusion given that there's also info_verbose, and there are places
of code that test "from_tty || info_verbose". Plus in
symbol_file_add_with_addrs_or_offsets it means more than just "be
chatty":
if ((have_full_symbols () || have_partial_symbols ())
&& mainline
&& from_tty
&& !query (_("Load new symbol table from \"%s\"? "), name))
error (_("Not confirmed."));
It's not a problem today, per se, just wondering about down the road ...
OOC, was SYMFILE_FROM_TTY considered and rejected?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SYMFILE_VERBOSE
2009-06-18 23:31 SYMFILE_VERBOSE Doug Evans
@ 2009-06-19 0:21 ` Paul Pluzhnikov
0 siblings, 0 replies; 2+ messages in thread
From: Paul Pluzhnikov @ 2009-06-19 0:21 UTC (permalink / raw)
To: Doug Evans; +Cc: Tom Tromey, gdb
On Thu, Jun 18, 2009 at 4:31 PM, Doug Evans<dje@google.com> wrote:
> OOC, was SYMFILE_FROM_TTY considered and rejected?
Half-way down the call chain, 'from_tty' was transformed into 'verbo'
parameter. I though SYMFILE_VERBOSE better matched the actual meaning.
--
Paul Pluzhnikov
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-19 0:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-18 23:31 SYMFILE_VERBOSE Doug Evans
2009-06-19 0:21 ` SYMFILE_VERBOSE Paul Pluzhnikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox