This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15800] IWBN to override what defaulted_query will do when input is not from terminal
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 30 Jul 2013 13:46:32 +0000
- Subject: [Bug gdb/15800] IWBN to override what defaulted_query will do when input is not from terminal
- Auto-submitted: auto-generated
- References: <bug-15800-4717 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15800
--- Comment #3 from Pedro Alves <palves at redhat dot com> ---
(sorry, I was not on IRC then, and well, that doesn't get archived)
> (with-query-default "y" "skip file foo.c")
I still think it's a too big a hammer. You don't really know which query GDB
will throw at the user. Sure, usually it'll be the one you want, but sometimes
it won't. And it's those other times that'll make such generic hammer
annoying.
We could still use a generic wrapping function like:
(wrap-option "skip pending" "on" "skip file foo.c")
With wrap-option working with any GDB option. It just needs to store the
current value, set it to the second argument, run the command, and then restore
the initial value. Should be doable in Python already today.
--
You are receiving this mail because:
You are on the CC list for the bug.