This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Feature request


>>>>> "Laurent" == Laurent Duperval <laurent.duperval@netergynet.com> writes:

Laurent>  rc = Tcl_GlobalEval(htmlPtr->interp, Tcl_DStringValue(&cmd));

Laurent> I'd like to put a breakpoint on Tcl_DStrinvValue by using the
Laurent> right mouse button. It currently isn't possible. Does anyone
Laurent> else feel this would be useful?

I think so.
Here is a trivial patch to implement it.

Is there a way to ask gdb whether a given piece of text is the name of
a function?  If so then it would be nice to make this menu item
conditional on the text actually naming a function.

I couldn't find a way to do that.  However if someone else knows
better, and tells me, I will update the patch.

If the powers that be like this patch I will check it in.


2000-11-21  Tom Tromey  <tromey@cygnus.com>

	* srctextwin.itb (SrcTextWin::do_source_popup): Added "Set
	Breakpoint" to popup menu.

Tom

Index: gdbtk/library/srctextwin.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/srctextwin.itb,v
retrieving revision 1.11
diff -u -r1.11 srctextwin.itb
--- srctextwin.itb	2000/10/11 22:37:30	1.11
+++ srctextwin.itb	2000/11/21 23:10:14
@@ -1997,6 +1997,8 @@
 	  -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
       }
     }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]