OSDN Git Service

* srctextwin.itb (SrcTextWin::do_source_popup): Added "Set
authortromey <tromey>
Thu, 7 Dec 2000 20:04:52 +0000 (20:04 +0000)
committertromey <tromey>
Thu, 7 Dec 2000 20:04:52 +0000 (20:04 +0000)
Breakpoint" to popup menu.

gdb/gdbtk/library/ChangeLog
gdb/gdbtk/library/srctextwin.itb

index 1fa77c4..48c6a65 100644 (file)
@@ -1,5 +1,8 @@
 2000-12-07  Tom Tromey  <tromey@redhat.com>
 
+       * srctextwin.itb (SrcTextWin::do_source_popup): Added "Set
+       Breakpoint" to popup menu.
+
        * srcwin.itb (SrcWin::edit): Use uplevel, not eval, to evaluate
        external editor expression.
 
index ead00ef..c33dfa3 100644 (file)
@@ -2067,6 +2067,8 @@ body SrcTextWin::do_source_popup { X Y x y } {
          -command [list $this addToWatch $variable]
        $popups(source) add command -label "Dump Memory at $variable" \
          -command [list ManagedWin::open MemWin -force -addr_exp $variable]
+       $popups(source) add command -label "Set Breakpoint at $variable" \
+         -command [list gdb_cmd "break $variable"]
        $popups(source) add separator
       }
     }