This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Fix to Breakpoint right-click menu bug [Was: TODO list (REPOST)]
- To: Mo DeJong <mdejong at cygnus dot com>
- Subject: Fix to Breakpoint right-click menu bug [Was: TODO list (REPOST)]
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Wed, 11 Oct 2000 18:31:12 -0400
- CC: insight at sources dot redhat dot com
- Organization: Red Hat , Inc. - Toronto
- References: <Pine.SOL.3.91.1001011145015.3659F-100000@cse.cygnus.com>
Mo DeJong wrote:
>
> > > In the
> > > source window, a right click brings up these options:
> > >
> > > - Continue to Here
> > > - Jump to Here
> > > - Delete Breakpoint
> > > - Jump to Here
> > > - Jump to Here
> > >
> > > Why are there two "Jump to Here" options?
> >
> > That would probably be my fault (as I added Jump to Here).
> > However, I don't see this in here. I would need to know under
> > which conditions this happens.
>
> Just set a BP by clicking to the left of the line, then right
> click on the red BP square, presto!
>
Here is the fix. It was me and my cut-and-paste mistakes (I get interrupted
all the time and sometines go back in the wrong context :-)
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
Index: srctextwin.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/srctextwin.itb,v
retrieving revision 1.10
diff -c -p -r1.10 srctextwin.itb
*** srctextwin.itb 2000/10/04 20:35:32 1.10
--- srctextwin.itb 2000/10/11 22:30:09
*************** body SrcTextWin::build_popups {} {
*** 239,245 ****
if {[pref get gdb/control_target]} {
addPopup tp "Continue to Here" "$this continue_to_here" green 0 0
! addPopup bp "Jump to Here" "$this jump_to_here" {} 0 0
# $popups(tp) add separator
# Currently you cannot set a tracepoint and a breakpoint at the same line...
--- 239,245 ----
if {[pref get gdb/control_target]} {
addPopup tp "Continue to Here" "$this continue_to_here" green 0 0
! addPopup tp "Jump to Here" "$this jump_to_here" {} 0 0
# $popups(tp) add separator
# Currently you cannot set a tracepoint and a breakpoint at the same line...
*************** body SrcTextWin::build_popups {} {
*** 272,278 ****
if {!$Browsing && [pref get gdb/control_target]} {
addPopup bp_and_tp "Continue to Here" "$this continue_to_here" \
green 0 0
! addPopup bp "Jump to Here" "$this jump_to_here" \
green 0 0
$popups(bp_and_tp) add separator
}
--- 272,278 ----
if {!$Browsing && [pref get gdb/control_target]} {
addPopup bp_and_tp "Continue to Here" "$this continue_to_here" \
green 0 0
! addPopup bp_and_tp "Jump to Here" "$this jump_to_here" \
green 0 0
$popups(bp_and_tp) add separator
}