public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* RE: doubt in using add command
       [not found] <50EE5AD0AF6ED511833900B0D020C858029801E0@localhost>
@ 2003-11-28 20:34 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2003-11-28 20:34 UTC (permalink / raw)
  To: KiranKumar B Shivananda; +Cc: Backhaus Willy, insight

On Wed, 2003-11-26 at 21:50, KiranKumar B Shivananda wrote:
> It gave the following error  
> 
> cannot inherit from "PluginWindow" (class "PluginWindow" not found in
> context "::")
> 

Are you running this from the build directory or installed? As I recall,
I never got around to "fixing" the former. Try installing insight ("make
install-gdb") and see if that works.

If you already are running from an installed copy, then the file
INSTALLDIR/share/insight1.0/pluginwin.itcl is missing or corrupt (or not
mentioned in the tclIndex). Any of these?

Keith


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: doubt in using add command
       [not found] <50EE5AD0AF6ED511833900B0D020C858029801DA@localhost>
@ 2003-11-26 16:53 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2003-11-26 16:53 UTC (permalink / raw)
  To: KiranKumar B Shivananda; +Cc: Backhaus Willy, insight

On Wed, 2003-11-26 at 03:08, KiranKumar B Shivananda wrote:

> $menubar add menubutton file "File" 0
> $menubar add command None "Close" \
> [code.....................
> 
> 
> but when i tried to invoke this program it gave the following error
> 
> can't read "menubar": no such variable.

If you look at the rhabout plugin, it does this, too. The variable
"menubar" is defined in the PluginWindow class. Is your plugin class
inheriting this class? (See src/gdb/gdbtk/plugins/rhabout/rhabout.itcl.)

> Whether I have to include my file in a particular  directory? If yes
> which directory?

Just follow the example plugin (rhabout). That should get you nearly
everything you would need. (If that fails, take a look at the
intel-pentium plugin.)

> Or whether I have to use lappend command to include some directory in
> the auto_path? If yes please give me the directory and syntax to use
> lappend

You should not need to do this. This will be done by your plugin's
config file, i.e., myplugin.tcl.in (see
src/gdb/gdbtk/plugins/rhabout/rhabout.tcl.in).

Keith


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-28 20:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <50EE5AD0AF6ED511833900B0D020C858029801E0@localhost>
2003-11-28 20:34 ` doubt in using add command Keith Seitz
     [not found] <50EE5AD0AF6ED511833900B0D020C858029801DA@localhost>
2003-11-26 16:53 ` Keith Seitz

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