[commit] setshow fprint_setshow and show_func parameters
Andrew Cagney
cagney@gnu.org
Wed Feb 16 20:56:00 GMT 2005
The add_setshow_* functions currently take two parameters for printing a
value, each possibly called in turn. For instance "show remote
P-packet" prints:
Current use of remote protocol `P' (set-register) packet is auto.
Support for remote protocol `P' (set-register) packet is
auto-detected, currently unknown.
The first line is from fprint_showfunc (well should be), and the second
from show_func.
This patch simplifies things by merging these two functions into a
single show_value function responsible for printing the entire output.
Any existing show_func / fprint_setshow functions are then updated (I
added deprecated_show_value_hack to simplify that step).
I'll follow up with a patch to remove the now defunct fprint_setshow
parameter (I kept it separate to make this patch simpler).
committed,
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20050216/ef1f8134/attachment.ksh>
More information about the Gdb-patches
mailing list