This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[patch] Add popup menu item to variable window
- From: "Martin M. Hunt" <hunt at redhat dot com>
- To: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: 03 Dec 2002 21:05:41 -0800
- Subject: [patch] Add popup menu item to variable window
2002-12-03 Martin M. Hunt <hunt@redhat.com>
* library/vartree.itb (_but3): Add popup menu item to dump
memory at the value of the variable.
Index: vartree.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/vartree.itb,v
retrieving revision 1.3
diff -p -r1.3 vartree.itb
*** vartree.itb 3 Dec 2002 23:44:49 -0000 1.3
--- vartree.itb 4 Dec 2002 05:02:32 -0000
*************** itcl::body VarTree::_but3 {x y X Y} {
*** 342,347 ****
--- 342,351 ----
$f add radio -label "Binary" -variable [scope popup_temp] -value "binary" -command [code $this _change_format $var]
$pop add command -label "Edit" -command [code $this edit $j3]
$pop add command -label "Delete" -command [code $this remove $var]
+ if {![catch {$var value} value]} {
+ $pop add separator
+ $pop add command -label "Dump Memory at $value" -command [list ManagedWin::open MemWin -force -addr_exp $value]
+ }
$pop add separator
if {$type == "local"} {
$pop add command -label "Help" -command "open_help watch.html"