Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Markus Deuling <deuling@de.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] new set/show multiple-choice-auto-select commands (take 2)
Date: Thu, 17 Jan 2008 12:31:00 -0000	[thread overview]
Message-ID: <20080117123044.GE28020@adacore.com> (raw)
In-Reply-To: <478F3E4B.6050005@de.ibm.com>

> 1. set multiple-choice-auto-select off (default):
>   If there is 0 || 1 symbol found, GDB follows the "normal" code path. If > 
>   1 symbol is found
>   the user choice is invoked
> 
> 2. set multiple-choice-auto-select all:
>   If there is > 1 symbol found all symbols found are automagically taken 
>   for e.g. breakpoints.
> 
> 3. set multiple-choice-auto-select cancel:
>   I think I'll ignore this. It makes no sense in that case. 
> 
> What do you think about it? Does it make sense?

So far, so good. But:

> The problem I saw and still see is the change of the default behaviour
> of GDB (and with that maybe the introduction of a lot of FAILs in the
> teststuite). The user has no possibility to avoid the user choice if
> there are > 1 symbols.

Right - that's the hole with using this setting. Thanks to your
explanations, I think that one way to cover that hole would be to
add an extra option like you suggested, and call it something like:
within-shared-library or somesuch. I think it's more informative
and also fits better in the concept introduced by the new "set/show"
command. In that case, the default can be set "within-shared-library"
and your current behavior would be preserved without change the
default behavior in Ada.

I need to look at how your feature is implemented. I wonder how well
this is supported when the language is Ada...  As a first step, Ada
can treat this option as "off" (display menu and ask user).

-- 
Joel


  reply	other threads:[~2008-01-17 12:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-16 13:56 Joel Brobecker
2008-01-17  6:37 ` Markus Deuling
2008-01-17 10:27   ` Joel Brobecker
2008-01-17 11:41     ` Markus Deuling
2008-01-17 12:31       ` Joel Brobecker [this message]
2008-01-17 14:26       ` Daniel Jacobowitz
2008-01-17 14:51         ` Joel Brobecker
2008-01-17 15:07           ` Daniel Jacobowitz
2008-01-23 15:33             ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080117123044.GE28020@adacore.com \
    --to=brobecker@adacore.com \
    --cc=deuling@de.ibm.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox