public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/25769] New: gdb not to drop to Multiple matches prompt with -batch
@ 2020-04-03 8:47 vries at gcc dot gnu.org
2020-08-09 20:42 ` [Bug ada/25769] " tromey at sourceware dot org
2020-08-22 8:12 ` vries at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2020-04-03 8:47 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25769
Bug ID: 25769
Summary: gdb not to drop to Multiple matches prompt with -batch
Product: gdb
Version: HEAD
Status: NEW
Severity: enhancement
Priority: P2
Component: ada
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
Consider test-case gdb.ada/call_pn.exp, run with target board
unix/-flto/-O0/-flto-partition=none/-ffat-lto-objects.
When using the executable like this, we get:
...
$ gdb -batch ./outputs/gdb.ada/call_pn/foo -ex "print last_node_id"
Multiple matches for last_node_id
[0] cancel
[1] pck.last_node_id at
/data/gdb_versions/devel/binutils-gdb.git/gdb/testsuite/gdb.ada/call_pn/pck.adb:17
[2] pck.last_node_id at
/data/gdb_versions/devel/binutils-gdb.git/gdb/testsuite/gdb.ada/call_pn/pck.adb:17
>
...
After typing 0, enter, enter:
...
> 0
cancelled
$
...
and we're done.
The -batch option is supposed to act as if "set confirm off" were in effect,
and that is documented as:
...
set confirm off
Disables confirmation requests.
...
So I suppose that this behaviour is not wrong, since we're asking a choice
rather than a confirmation, but it's counter-intuitive for me.
I intuitively interpret -batch as "not requiring user input" so automatically
choosing 0 or printing all options would have made more sense for me.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug ada/25769] gdb not to drop to Multiple matches prompt with -batch
2020-04-03 8:47 [Bug ada/25769] New: gdb not to drop to Multiple matches prompt with -batch vries at gcc dot gnu.org
@ 2020-08-09 20:42 ` tromey at sourceware dot org
2020-08-22 8:12 ` vries at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2020-08-09 20:42 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25769
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Agreed; though I tend to think that those menus should
go away entirely somehow.
(This one seems super bad because the choices appear to be
identical anyway.)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug ada/25769] gdb not to drop to Multiple matches prompt with -batch
2020-04-03 8:47 [Bug ada/25769] New: gdb not to drop to Multiple matches prompt with -batch vries at gcc dot gnu.org
2020-08-09 20:42 ` [Bug ada/25769] " tromey at sourceware dot org
@ 2020-08-22 8:12 ` vries at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2020-08-22 8:12 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25769
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom Tromey from comment #1)
> (This one seems super bad because the choices appear to be
> identical anyway.)
That's due to PR25771.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-08-22 8:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 8:47 [Bug ada/25769] New: gdb not to drop to Multiple matches prompt with -batch vries at gcc dot gnu.org
2020-08-09 20:42 ` [Bug ada/25769] " tromey at sourceware dot org
2020-08-22 8:12 ` vries at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).