This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/15800] IWBN to override what defaulted_query will do when input is not from terminal


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]