* feature suggestion
@ 2001-10-06 13:22 Tom Tromey
2001-10-08 1:27 ` Keith Seitz
2001-12-03 21:24 ` Tom Tromey
0 siblings, 2 replies; 16+ messages in thread
From: Tom Tromey @ 2001-10-06 13:22 UTC (permalink / raw)
To: Insight List
I typically use the console window.
It would be helpful to me if the (mouse) cursor changed to a watch
over the console window when the inferior is executing.
I find the current situation constantly confusing, and I never
remember to look at the state of the buttons on the source window to
see what is going on.
Tom
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-06 13:22 feature suggestion Tom Tromey
@ 2001-10-08 1:27 ` Keith Seitz
2001-10-08 14:34 ` Tom Tromey
2001-12-04 11:36 ` Keith Seitz
2001-12-03 21:24 ` Tom Tromey
1 sibling, 2 replies; 16+ messages in thread
From: Keith Seitz @ 2001-10-08 1:27 UTC (permalink / raw)
To: Tom Tromey; +Cc: Insight List
On 3 Dec 2001, Tom Tromey wrote:
> It would be helpful to me if the (mouse) cursor changed to a watch
> over the console window when the inferior is executing.
Try this patch. If it works, I'll check something in.
Keith
Index: library/console.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/console.itb,v
retrieving revision 1.14
diff -u -p -r1.14 console.itb
--- library/console.itb 2001/10/17 20:30:29 1.14
+++ library/console.itb 2001/12/04 19:36:22
@@ -205,6 +205,7 @@ body Console::_build_win {} {
body Console::idle {event} {
set _running 0
+ $_top configure -cursor {}
}
# ------------------------------------------------------------------
@@ -212,6 +213,7 @@ body Console::idle {event} {
# ------------------------------------------------------------------
body Console::busy {event} {
set _running 1
+ $_top configure -cursor watch
}
# ------------------------------------------------------------------
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-08 1:27 ` Keith Seitz
@ 2001-10-08 14:34 ` Tom Tromey
2001-10-09 8:16 ` Keith Seitz
2001-12-04 20:27 ` Tom Tromey
2001-12-04 11:36 ` Keith Seitz
1 sibling, 2 replies; 16+ messages in thread
From: Tom Tromey @ 2001-10-08 14:34 UTC (permalink / raw)
To: Keith Seitz; +Cc: Insight List
>>>>> "Keith" == Keith Seitz <keiths@cygnus.com> writes:
>> It would be helpful to me if the (mouse) cursor changed to a watch
>> over the console window when the inferior is executing.
Keith> Try this patch. If it works, I'll check something in.
It works fine.
Thanks!
Tom
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-08 14:34 ` Tom Tromey
@ 2001-10-09 8:16 ` Keith Seitz
2001-12-05 9:08 ` Keith Seitz
2001-12-04 20:27 ` Tom Tromey
1 sibling, 1 reply; 16+ messages in thread
From: Keith Seitz @ 2001-10-09 8:16 UTC (permalink / raw)
To: Insight Maling List
On 4 Dec 2001, Tom Tromey wrote:
> Keith> Try this patch. If it works, I'll check something in.
>
> It works fine.
Ok, checked in.
Keith
^ permalink raw reply [flat|nested] 16+ messages in thread
* feature suggestion
2001-10-06 13:22 feature suggestion Tom Tromey
2001-10-08 1:27 ` Keith Seitz
@ 2001-12-03 21:24 ` Tom Tromey
1 sibling, 0 replies; 16+ messages in thread
From: Tom Tromey @ 2001-12-03 21:24 UTC (permalink / raw)
To: Insight List
I typically use the console window.
It would be helpful to me if the (mouse) cursor changed to a watch
over the console window when the inferior is executing.
I find the current situation constantly confusing, and I never
remember to look at the state of the buttons on the source window to
see what is going on.
Tom
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-08 1:27 ` Keith Seitz
2001-10-08 14:34 ` Tom Tromey
@ 2001-12-04 11:36 ` Keith Seitz
1 sibling, 0 replies; 16+ messages in thread
From: Keith Seitz @ 2001-12-04 11:36 UTC (permalink / raw)
To: Tom Tromey; +Cc: Insight List
On 3 Dec 2001, Tom Tromey wrote:
> It would be helpful to me if the (mouse) cursor changed to a watch
> over the console window when the inferior is executing.
Try this patch. If it works, I'll check something in.
Keith
Index: library/console.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/console.itb,v
retrieving revision 1.14
diff -u -p -r1.14 console.itb
--- library/console.itb 2001/10/17 20:30:29 1.14
+++ library/console.itb 2001/12/04 19:36:22
@@ -205,6 +205,7 @@ body Console::_build_win {} {
body Console::idle {event} {
set _running 0
+ $_top configure -cursor {}
}
# ------------------------------------------------------------------
@@ -212,6 +213,7 @@ body Console::idle {event} {
# ------------------------------------------------------------------
body Console::busy {event} {
set _running 1
+ $_top configure -cursor watch
}
# ------------------------------------------------------------------
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-08 14:34 ` Tom Tromey
2001-10-09 8:16 ` Keith Seitz
@ 2001-12-04 20:27 ` Tom Tromey
1 sibling, 0 replies; 16+ messages in thread
From: Tom Tromey @ 2001-12-04 20:27 UTC (permalink / raw)
To: Keith Seitz; +Cc: Insight List
>>>>> "Keith" == Keith Seitz <keiths@cygnus.com> writes:
>> It would be helpful to me if the (mouse) cursor changed to a watch
>> over the console window when the inferior is executing.
Keith> Try this patch. If it works, I'll check something in.
It works fine.
Thanks!
Tom
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-09 8:16 ` Keith Seitz
@ 2001-12-05 9:08 ` Keith Seitz
0 siblings, 0 replies; 16+ messages in thread
From: Keith Seitz @ 2001-12-05 9:08 UTC (permalink / raw)
To: Insight Maling List
On 4 Dec 2001, Tom Tromey wrote:
> Keith> Try this patch. If it works, I'll check something in.
>
> It works fine.
Ok, checked in.
Keith
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-16 10:35 ` Keith Seitz
@ 2001-12-21 13:37 ` Keith Seitz
0 siblings, 0 replies; 16+ messages in thread
From: Keith Seitz @ 2001-12-21 13:37 UTC (permalink / raw)
To: Tom Tromey; +Cc: Insight List
On 21 Dec 2001, Tom Tromey wrote:
> Wow, that was quick.
> I tried it and it works great for me.
> Thanks.
Cool!
Committed.
Keith
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-16 10:30 ` Tom Tromey
2001-10-16 10:35 ` Keith Seitz
@ 2001-12-21 13:34 ` Tom Tromey
1 sibling, 0 replies; 16+ messages in thread
From: Tom Tromey @ 2001-12-21 13:34 UTC (permalink / raw)
To: Keith Seitz; +Cc: Insight List
>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:
>> I think that B3 on the breakpoint window should automatically select
>> the breakpoint under the mouse. I keep trying to use the right button
>> to bring up the menu, but first I have to select the item I'm
>> interested in. This has happened 4-5 times already ... changing this
>> would be convenient.
Keith> Your wish is my command...
Keith> Try this and let me know if you find any problems with it.
Wow, that was quick.
I tried it and it works great for me.
Thanks.
Tom
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-16 10:22 ` Keith Seitz
2001-10-16 10:30 ` Tom Tromey
@ 2001-12-20 22:19 ` Keith Seitz
1 sibling, 0 replies; 16+ messages in thread
From: Keith Seitz @ 2001-12-20 22:19 UTC (permalink / raw)
To: Tom Tromey; +Cc: Insight List
On 20 Dec 2001, Tom Tromey wrote:
> I think that B3 on the breakpoint window should automatically select
> the breakpoint under the mouse. I keep trying to use the right button
> to bring up the menu, but first I have to select the item I'm
> interested in. This has happened 4-5 times already ... changing this
> would be convenient.
Your wish is my command...
Try this and let me know if you find any problems with it.
Keith
Index: gdbtk/library/bpwin.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/bpwin.itb,v
retrieving revision 1.9
diff -u -p -r1.9 bpwin.itb
--- gdbtk/library/bpwin.itb 2001/11/05 19:15:17 1.9
+++ gdbtk/library/bpwin.itb 2001/12/21 06:16:52
@@ -265,6 +265,7 @@ body BpWin::bp_add {bp_event {tracepoint
foreach thing $zz {
bind $twin.${thing}${i} <1> "$this bp_select $i"
bind $twin.${thing}${i} <Double-1> "$this goto_bp $i"
+ bind $twin.${thing}${i} <3> [code $this _select_and_popup $i %X %Y]
}
}
@@ -368,7 +369,6 @@ body BpWin::bp_select { r } {
foreach thing $zz {
$twin.${thing}${i} configure -fg [pref get gdb/font/select_fg] -bg $bg1
- bind $twin.${thing}${i} <3> break
}
}
@@ -386,17 +386,12 @@ body BpWin::bp_select { r } {
$itk_interior.m.bp entryconfigure "Disabled" -state disabled
$itk_interior.m.bp entryconfigure "Remove" -state disabled
- foreach thing $zz {
- bind $twin.${thing}${r} <3> break
- }
-
return
}
foreach thing $zz {
$twin.${thing}${r} configure -fg [pref get gdb/font/select_fg] \
-bg [pref get gdb/font/select_bg]
- bind $twin.${thing}${r} <3> "tk_popup $Menu %X %Y"
}
if {$tracepoints == 0} {
@@ -424,6 +419,21 @@ body BpWin::bp_select { r } {
$Menu entryconfigure "Remove" -command "$this bp_remove $r" -state normal
set selected $r
+}
+
+# ------------------------------------------------------------------
+# NAME: private method BpWin::_select_and_popup
+# DESCRIPTION: Select the given breakpoint and popup the options
+# menu at the given location.
+#
+# ARGUMENTS: None
+# RETURNS: Nothing
+# ------------------------------------------------------------------
+body BpWin::_select_and_popup {bp X Y} {
+ if {$selected != $bp} {
+ bp_select $bp
+ }
+ tk_popup $Menu $X $Y
}
# ------------------------------------------------------------------
Index: gdbtk/library/bpwin.ith
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/bpwin.ith,v
retrieving revision 1.2
diff -u -p -r1.2 bpwin.ith
--- gdbtk/library/bpwin.ith 2001/04/19 22:51:02 1.2
+++ gdbtk/library/bpwin.ith 2001/12/21 06:16:52
@@ -53,6 +53,7 @@ class BpWin {
method bp_add {bp_event {tracepoint 0}}
method bp_modify {bp_event {tracepoint 0}}
method bp_delete {bp_event}
+ method _select_and_popup {bp X Y}
}
}
^ permalink raw reply [flat|nested] 16+ messages in thread
* feature suggestion
2001-10-16 10:16 Tom Tromey
2001-10-16 10:22 ` Keith Seitz
@ 2001-12-20 21:48 ` Tom Tromey
1 sibling, 0 replies; 16+ messages in thread
From: Tom Tromey @ 2001-12-20 21:48 UTC (permalink / raw)
To: Insight List
I think that B3 on the breakpoint window should automatically select
the breakpoint under the mouse. I keep trying to use the right button
to bring up the menu, but first I have to select the item I'm
interested in. This has happened 4-5 times already ... changing this
would be convenient.
Tom
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-16 10:30 ` Tom Tromey
@ 2001-10-16 10:35 ` Keith Seitz
2001-12-21 13:37 ` Keith Seitz
2001-12-21 13:34 ` Tom Tromey
1 sibling, 1 reply; 16+ messages in thread
From: Keith Seitz @ 2001-10-16 10:35 UTC (permalink / raw)
To: Tom Tromey; +Cc: Insight List
On 21 Dec 2001, Tom Tromey wrote:
> Wow, that was quick.
> I tried it and it works great for me.
> Thanks.
Cool!
Committed.
Keith
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-16 10:22 ` Keith Seitz
@ 2001-10-16 10:30 ` Tom Tromey
2001-10-16 10:35 ` Keith Seitz
2001-12-21 13:34 ` Tom Tromey
2001-12-20 22:19 ` Keith Seitz
1 sibling, 2 replies; 16+ messages in thread
From: Tom Tromey @ 2001-10-16 10:30 UTC (permalink / raw)
To: Keith Seitz; +Cc: Insight List
>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:
>> I think that B3 on the breakpoint window should automatically select
>> the breakpoint under the mouse. I keep trying to use the right button
>> to bring up the menu, but first I have to select the item I'm
>> interested in. This has happened 4-5 times already ... changing this
>> would be convenient.
Keith> Your wish is my command...
Keith> Try this and let me know if you find any problems with it.
Wow, that was quick.
I tried it and it works great for me.
Thanks.
Tom
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: feature suggestion
2001-10-16 10:16 Tom Tromey
@ 2001-10-16 10:22 ` Keith Seitz
2001-10-16 10:30 ` Tom Tromey
2001-12-20 22:19 ` Keith Seitz
2001-12-20 21:48 ` Tom Tromey
1 sibling, 2 replies; 16+ messages in thread
From: Keith Seitz @ 2001-10-16 10:22 UTC (permalink / raw)
To: Tom Tromey; +Cc: Insight List
On 20 Dec 2001, Tom Tromey wrote:
> I think that B3 on the breakpoint window should automatically select
> the breakpoint under the mouse. I keep trying to use the right button
> to bring up the menu, but first I have to select the item I'm
> interested in. This has happened 4-5 times already ... changing this
> would be convenient.
Your wish is my command...
Try this and let me know if you find any problems with it.
Keith
Index: gdbtk/library/bpwin.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/bpwin.itb,v
retrieving revision 1.9
diff -u -p -r1.9 bpwin.itb
--- gdbtk/library/bpwin.itb 2001/11/05 19:15:17 1.9
+++ gdbtk/library/bpwin.itb 2001/12/21 06:16:52
@@ -265,6 +265,7 @@ body BpWin::bp_add {bp_event {tracepoint
foreach thing $zz {
bind $twin.${thing}${i} <1> "$this bp_select $i"
bind $twin.${thing}${i} <Double-1> "$this goto_bp $i"
+ bind $twin.${thing}${i} <3> [code $this _select_and_popup $i %X %Y]
}
}
@@ -368,7 +369,6 @@ body BpWin::bp_select { r } {
foreach thing $zz {
$twin.${thing}${i} configure -fg [pref get gdb/font/select_fg] -bg $bg1
- bind $twin.${thing}${i} <3> break
}
}
@@ -386,17 +386,12 @@ body BpWin::bp_select { r } {
$itk_interior.m.bp entryconfigure "Disabled" -state disabled
$itk_interior.m.bp entryconfigure "Remove" -state disabled
- foreach thing $zz {
- bind $twin.${thing}${r} <3> break
- }
-
return
}
foreach thing $zz {
$twin.${thing}${r} configure -fg [pref get gdb/font/select_fg] \
-bg [pref get gdb/font/select_bg]
- bind $twin.${thing}${r} <3> "tk_popup $Menu %X %Y"
}
if {$tracepoints == 0} {
@@ -424,6 +419,21 @@ body BpWin::bp_select { r } {
$Menu entryconfigure "Remove" -command "$this bp_remove $r" -state normal
set selected $r
+}
+
+# ------------------------------------------------------------------
+# NAME: private method BpWin::_select_and_popup
+# DESCRIPTION: Select the given breakpoint and popup the options
+# menu at the given location.
+#
+# ARGUMENTS: None
+# RETURNS: Nothing
+# ------------------------------------------------------------------
+body BpWin::_select_and_popup {bp X Y} {
+ if {$selected != $bp} {
+ bp_select $bp
+ }
+ tk_popup $Menu $X $Y
}
# ------------------------------------------------------------------
Index: gdbtk/library/bpwin.ith
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/bpwin.ith,v
retrieving revision 1.2
diff -u -p -r1.2 bpwin.ith
--- gdbtk/library/bpwin.ith 2001/04/19 22:51:02 1.2
+++ gdbtk/library/bpwin.ith 2001/12/21 06:16:52
@@ -53,6 +53,7 @@ class BpWin {
method bp_add {bp_event {tracepoint 0}}
method bp_modify {bp_event {tracepoint 0}}
method bp_delete {bp_event}
+ method _select_and_popup {bp X Y}
}
}
^ permalink raw reply [flat|nested] 16+ messages in thread
* feature suggestion
@ 2001-10-16 10:16 Tom Tromey
2001-10-16 10:22 ` Keith Seitz
2001-12-20 21:48 ` Tom Tromey
0 siblings, 2 replies; 16+ messages in thread
From: Tom Tromey @ 2001-10-16 10:16 UTC (permalink / raw)
To: Insight List
I think that B3 on the breakpoint window should automatically select
the breakpoint under the mouse. I keep trying to use the right button
to bring up the menu, but first I have to select the item I'm
interested in. This has happened 4-5 times already ... changing this
would be convenient.
Tom
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2001-12-21 21:37 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-06 13:22 feature suggestion Tom Tromey
2001-10-08 1:27 ` Keith Seitz
2001-10-08 14:34 ` Tom Tromey
2001-10-09 8:16 ` Keith Seitz
2001-12-05 9:08 ` Keith Seitz
2001-12-04 20:27 ` Tom Tromey
2001-12-04 11:36 ` Keith Seitz
2001-12-03 21:24 ` Tom Tromey
2001-10-16 10:16 Tom Tromey
2001-10-16 10:22 ` Keith Seitz
2001-10-16 10:30 ` Tom Tromey
2001-10-16 10:35 ` Keith Seitz
2001-12-21 13:37 ` Keith Seitz
2001-12-21 13:34 ` Tom Tromey
2001-12-20 22:19 ` Keith Seitz
2001-12-20 21:48 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).