public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [patch] Add popup menu item to variable window
@ 2002-12-03 21:04 Martin M. Hunt
  0 siblings, 0 replies; only message in thread
From: Martin M. Hunt @ 2002-12-03 21:04 UTC (permalink / raw)
  To: insight

[-- Attachment #1: Type: text/plain, Size: 147 bytes --]

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.



[-- Attachment #2: p --]
[-- Type: text/x-patch, Size: 957 bytes --]

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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-04  5:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-03 21:04 [patch] Add popup menu item to variable window Martin M. Hunt

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).