This is the mail archive of the gdb-prs@sources.redhat.com 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]

gdb/434: add_set_cmd() + add_show_from_set() -> add_setshow_cmd()



>Number:         434
>Category:       gdb
>Synopsis:       add_set_cmd() + add_show_from_set() -> add_setshow_cmd()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 18 18:38:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     ac131313@redhat.com
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
Per discussion between AndrewC and FernandoN.

The add_set_cmd() and add_show_from_set() functions can be compined into a single function:

  setcmd = add_setshow_cmd(name, var, vartype, ..., **showcmd);

Where, if ``**showcmd'' is non-NULL, gets the show command from the pair.

The old commands should be ARI added to the (info or warning?).  Other commands - add_set_boolean et.al. can all go the same way.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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