This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: [RFA] 100494 fix
At 01:07 PM 10/31/00 -0500, Larry Smith wrote:
>2000-10-31 Larry Smith <lsmith@redhat.com>
>
> * change targetselection.it*, put Run Program and Continue
>From...
> buttons into a frame and disables both of them when the target
>is
> "exec".
The proper format is:
* library/targetselection.ith (run_method): Add this variable.
* library/targetselection.itb (method name?): Change the run
method depending on state of "exec".
Or something similar. ChangeLogs are of the form:
* file (method_proc_or_variable): What changed.
Please refer to the GNU coding standards for more information.
This will go into gdbtk/ChangeLog, right?
>RCS file: /cvs/src/src/gdb/gdbtk/library/targetselection.ith,v
>retrieving revision 1.2
>diff -r1.2 targetselection.ith
>57a58,59
> >
> > variable run_method
> >
>
> > cvs diff -r 1.5 targetselection.itb
>Index: targetselection.itb
>===================================================================
>RCS file: /cvs/src/src/gdb/gdbtk/library/targetselection.itb,v
>retrieving revision 1.5
>diff -r1.5 targetselection.itb
>489a490,493
> > set rm_frame [iwidgets::labeledframe $frame.run_method -labelpos nw
> -labeltext "Run Method" ]
> > set run_method [ $rm_frame childsite ]
> >
> > set rm_label [label $frame.label -text "Run Method:"]
>491c495
>< radiobutton $frame.cont -text {Continue from Last Stop} -value 1
>-variable $var \
>---
> > radiobutton $run_method.cont -text {Continue from Last Stop} -value 1
> -variable $var \
>495c499
>< radiobutton $frame.run -text {Run Program} -value 1 -variable $var \
>---
> > radiobutton $run_method.run -text {Run Program} -value 1 -variable $var \
>501,504c505,516
>< grid $frame.attach $frame.run -sticky w
>< grid $frame.load $frame.cont -sticky w
>< grid $frame.afterl -sticky we -columnspan 2
>< grid $frame.aftere -sticky we -columnspan 2
>---
> >
> > grid $frame.label -column 1 -row 0 -sticky w
> > grid $frame.attach -column 0 -row 1 -ipady 2
> > grid $frame.load -column 0 -row 2 -ipady 2
> >
> > grid $run_method.run -column 0 -row 1 -sticky w -ipady 2
> > grid $run_method.cont -column 0 -row 2 -sticky w -ipady 2
> >
> > grid $rm_frame -column 1 -row 1 -rowspan 2 -sticky nsew -ipady 2
> >
> > grid $frame.afterl -row 4 -sticky we -columnspan 2 -ipady 2
> > grid $frame.aftere -sticky we -columnspan 2 -ipady 2
>724a737,745
> >
> > if { "$target" == "exec" } {
> > $run_method.run configure -state disabled -value 1
> > $run_method.cont configure -state disabled
> > } else {
> > $run_method.run configure -state normal
> > $run_method.cont configure -state normal
> > }
>
>--
> .-. .-. .---. .---. .-..-. | "Bill Gates is just a monocle
> | |__ / | \| |-< | |-< > / | and a Persian Cat away from
> `----'`-^-'`-'`-'`-'`-' `-' | being one of the bad guys in a
> My opinions only. | James Bond movie." -- D Miller
Syd Polk spolk@redhat.com
Engineering Manager +1 415 777 9810 x 241
Red Hat, Inc.