public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Re: regenerating tclIndex
       [not found] <1006196231.29860.ezmlm@sources.redhat.com>
@ 2001-10-02 16:09 ` Jim Ingham
  2001-11-19 11:26   ` Jim Ingham
  0 siblings, 1 reply; 12+ messages in thread
From: Jim Ingham @ 2001-10-02 16:09 UTC (permalink / raw)
  To: insight

I am pretty sure that you have to use Itcl to generate tclIndex files 
for code that contains Itcl classes, or the classes & methods will not 
get included in the index.  If you look, Itcl adds its own recognizer to 
the mkIndex parser namespace to look for these things.  I doubt this 
exists in straight Tcl.  The indexes might still work if you happen to 
hit straight tcl commands that bring all the code you care about in, but 
it is not a good bet that it will.

I also have some vague memory that there was a bug in the stock Itcl 
index generation code that I fixed in our version, but never got merged 
back to the Itcl source base?  This may be brain-noise, however.

Jim


On Monday, November 19, 2001, at 10:57  AM, insight-digest-
help@sources.redhat.com wrote:

> Doh. My bad? Didn't we decide that we would just require developers to
> have tclsh8.3?
>
>
--
Jim Ingham                                   jingham@apple.com
Developer Tools - gdb
Apple Computer

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

* Re: regenerating tclIndex
  2001-10-02 16:09 ` regenerating tclIndex Jim Ingham
@ 2001-11-19 11:26   ` Jim Ingham
  0 siblings, 0 replies; 12+ messages in thread
From: Jim Ingham @ 2001-11-19 11:26 UTC (permalink / raw)
  To: insight

I am pretty sure that you have to use Itcl to generate tclIndex files 
for code that contains Itcl classes, or the classes & methods will not 
get included in the index.  If you look, Itcl adds its own recognizer to 
the mkIndex parser namespace to look for these things.  I doubt this 
exists in straight Tcl.  The indexes might still work if you happen to 
hit straight tcl commands that bring all the code you care about in, but 
it is not a good bet that it will.

I also have some vague memory that there was a bug in the stock Itcl 
index generation code that I fixed in our version, but never got merged 
back to the Itcl source base?  This may be brain-noise, however.

Jim


On Monday, November 19, 2001, at 10:57  AM, insight-digest-
help@sources.redhat.com wrote:

> Doh. My bad? Didn't we decide that we would just require developers to
> have tclsh8.3?
>
>
--
Jim Ingham                                   jingham@apple.com
Developer Tools - gdb
Apple Computer

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

* Re: regenerating tclIndex
  2001-10-03  9:39     ` Tom Tromey
@ 2001-11-19 12:25       ` Tom Tromey
  0 siblings, 0 replies; 12+ messages in thread
From: Tom Tromey @ 2001-11-19 12:25 UTC (permalink / raw)
  To: Keith Seitz; +Cc: Syd Polk, Insight List

Keith> Didn't we decide that we would just require developers to have
Keith> tclsh8.3?

I think so.

Keith> So we could do something like:

I tried this.  It doesn't work for me:

creche. make
echo "package require Itcl 3.0; auto_mkindex `pwd` about.tcl actiondlg.tcl editor.tcl interface.tcl locals.tcl main.tcl modal.tcl prefs.tcl session.tcl tdump.tcl tfind_args.tcl toolbar.tcl tracedlg.tcl tty.tcl util.tcl variables.tcl warning.tcl watch.tcl gdbmenubar.itcl gdbtoolbar.itcl pluginwin.itcl srcbar.itcl attachdlg.ith blockframe.ith bpwin.ith browserwin.ith console.ith data.ith debugwin.ith download.ith ehandler.ith embeddedwin.ith gdbevent.ith gdbwin.ith globalpref.ith helpviewer.ith kod.ith managedwin.ith mempref.ith memwin.ith process.ith regwin.ith srcpref.ith srctextwin.ith srcwin.ith stackwin.ith targetselection.ith toplevelwin.ith attachdlg.itb blockframe.itb bpwin.itb browserwin.itb console.itb data.itb debugwin.itb download.itb ehandler.itb gdbevent.itb globalpref.itb helpviewer.itb kod.itb managedwin.itb mempref.itb memwin.itb process.itb regwin.itb srcpref.itb srctextwin.itb srcwin.itb stackwin.itb targetselection.itb" | tclsh8.3
couldn't load file "/x3/gdb/install/lib/itcl3.2/../libitcl3.2.a": /x3/gdb/install/lib/itcl3.2/../libitcl3.2.a: invalid ELF header


When I look in the install lib directory, I can see that there is no
shared libitcl.  Also, itcl isn't linked into tclsh8.3.  So the
`package require' must fail.

Tom

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

* Re: regenerating tclIndex
  2001-10-02 15:51   ` Keith Seitz
  2001-10-03  9:39     ` Tom Tromey
@ 2001-11-19  8:46     ` Keith Seitz
  1 sibling, 0 replies; 12+ messages in thread
From: Keith Seitz @ 2001-11-19  8:46 UTC (permalink / raw)
  To: Tom Tromey; +Cc: Syd Polk, Insight List

On 19 Nov 2001, Tom Tromey wrote:

> Syd> Run "make" from the source directory. Make sure tclsh is installed.
>
> That doesn't work.
> The current gdbtk/library/Makefile still references itclsh3.0.

Doh. My bad? Didn't we decide that we would just require developers to
have tclsh8.3?

So we could do something like:

Index: Makefile
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile	2001/01/03 05:34:04	1.2
+++ Makefile	2001/11/19 16:45:23
@@ -1,10 +1,10 @@

 TCL := $(wildcard *.tcl *.itcl *.ith *.itb)

-ITCL_SH = itclsh3.0
+TCLSH = tclsh8.3

 tclIndex: $(TCL) Makefile
-	echo "auto_mkindex `pwd` $(TCL)" | $(ITCL_SH)
+	echo "package require Itcl 3.0; auto_mkindex `pwd` $(TCL)" | $(TCLSH)

 tags: TAGS
 TAGS: $(TCL)


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

* Re: regenerating tclIndex
  2001-10-02 14:55 ` Tom Tromey
  2001-10-02 15:51   ` Keith Seitz
@ 2001-11-18 22:36   ` Tom Tromey
  1 sibling, 0 replies; 12+ messages in thread
From: Tom Tromey @ 2001-11-18 22:36 UTC (permalink / raw)
  To: Syd Polk; +Cc: Insight List

>>>>> "Syd" == Syd Polk <jazzman@bayarea.net> writes:

Tom> Did anybody ever come up with a scheme for regenerating the
Tom> Insight tclIndex file?  I need to regenerate it, but as I recall
Tom> the last conversation didn't converge on a method.  How do other
Tom> people do it?

Syd> Run "make" from the source directory. Make sure tclsh is installed.

That doesn't work.
The current gdbtk/library/Makefile still references itclsh3.0.

Tom

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

* Re: regenerating tclIndex
  2001-10-02 14:55 Syd Polk
  2001-10-02 14:55 ` Tom Tromey
@ 2001-11-18 21:32 ` Syd Polk
  1 sibling, 0 replies; 12+ messages in thread
From: Syd Polk @ 2001-11-18 21:32 UTC (permalink / raw)
  To: tromey, Insight List

Tom Tromey wrote:

>Did anybody ever come up with a scheme for regenerating the Insight
>tclIndex file?  I need to regenerate it, but as I recall the last
>conversation didn't converge on a method.  How do other people do it?
>
>Tom

Run "make" from the source directory. Make sure tclsh is installed.



Syd Polk
jazzman@bayarea.net                 http://www.bayarea.net/~jazzman
"Let the music be your light." -- Dave Edwards, KUHF-FM, 1982

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

* regenerating tclIndex
  2001-10-02 14:41 Tom Tromey
@ 2001-11-18 18:02 ` Tom Tromey
  0 siblings, 0 replies; 12+ messages in thread
From: Tom Tromey @ 2001-11-18 18:02 UTC (permalink / raw)
  To: Insight List

Did anybody ever come up with a scheme for regenerating the Insight
tclIndex file?  I need to regenerate it, but as I recall the last
conversation didn't converge on a method.  How do other people do it?

Tom

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

* Re: regenerating tclIndex
  2001-10-02 15:51   ` Keith Seitz
@ 2001-10-03  9:39     ` Tom Tromey
  2001-11-19 12:25       ` Tom Tromey
  2001-11-19  8:46     ` Keith Seitz
  1 sibling, 1 reply; 12+ messages in thread
From: Tom Tromey @ 2001-10-03  9:39 UTC (permalink / raw)
  To: Keith Seitz; +Cc: Syd Polk, Insight List

Keith> Didn't we decide that we would just require developers to have
Keith> tclsh8.3?

I think so.

Keith> So we could do something like:

I tried this.  It doesn't work for me:

creche. make
echo "package require Itcl 3.0; auto_mkindex `pwd` about.tcl actiondlg.tcl editor.tcl interface.tcl locals.tcl main.tcl modal.tcl prefs.tcl session.tcl tdump.tcl tfind_args.tcl toolbar.tcl tracedlg.tcl tty.tcl util.tcl variables.tcl warning.tcl watch.tcl gdbmenubar.itcl gdbtoolbar.itcl pluginwin.itcl srcbar.itcl attachdlg.ith blockframe.ith bpwin.ith browserwin.ith console.ith data.ith debugwin.ith download.ith ehandler.ith embeddedwin.ith gdbevent.ith gdbwin.ith globalpref.ith helpviewer.ith kod.ith managedwin.ith mempref.ith memwin.ith process.ith regwin.ith srcpref.ith srctextwin.ith srcwin.ith stackwin.ith targetselection.ith toplevelwin.ith attachdlg.itb blockframe.itb bpwin.itb browserwin.itb console.itb data.itb debugwin.itb download.itb ehandler.itb gdbevent.itb globalpref.itb helpviewer.itb kod.itb managedwin.itb mempref.itb memwin.itb process.itb regwin.itb srcpref.itb srctextwin.itb srcwin.itb stackwin.itb targetselection.itb" | tclsh8.3
couldn't load file "/x3/gdb/install/lib/itcl3.2/../libitcl3.2.a": /x3/gdb/install/lib/itcl3.2/../libitcl3.2.a: invalid ELF header


When I look in the install lib directory, I can see that there is no
shared libitcl.  Also, itcl isn't linked into tclsh8.3.  So the
`package require' must fail.

Tom

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

* Re: regenerating tclIndex
  2001-10-02 14:55 ` Tom Tromey
@ 2001-10-02 15:51   ` Keith Seitz
  2001-10-03  9:39     ` Tom Tromey
  2001-11-19  8:46     ` Keith Seitz
  2001-11-18 22:36   ` Tom Tromey
  1 sibling, 2 replies; 12+ messages in thread
From: Keith Seitz @ 2001-10-02 15:51 UTC (permalink / raw)
  To: Tom Tromey; +Cc: Syd Polk, Insight List

On 19 Nov 2001, Tom Tromey wrote:

> Syd> Run "make" from the source directory. Make sure tclsh is installed.
>
> That doesn't work.
> The current gdbtk/library/Makefile still references itclsh3.0.

Doh. My bad? Didn't we decide that we would just require developers to
have tclsh8.3?

So we could do something like:

Index: Makefile
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile	2001/01/03 05:34:04	1.2
+++ Makefile	2001/11/19 16:45:23
@@ -1,10 +1,10 @@

 TCL := $(wildcard *.tcl *.itcl *.ith *.itb)

-ITCL_SH = itclsh3.0
+TCLSH = tclsh8.3

 tclIndex: $(TCL) Makefile
-	echo "auto_mkindex `pwd` $(TCL)" | $(ITCL_SH)
+	echo "package require Itcl 3.0; auto_mkindex `pwd` $(TCL)" | $(TCLSH)

 tags: TAGS
 TAGS: $(TCL)


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

* Re: regenerating tclIndex
@ 2001-10-02 14:55 Syd Polk
  2001-10-02 14:55 ` Tom Tromey
  2001-11-18 21:32 ` Syd Polk
  0 siblings, 2 replies; 12+ messages in thread
From: Syd Polk @ 2001-10-02 14:55 UTC (permalink / raw)
  To: tromey, Insight List

Tom Tromey wrote:

>Did anybody ever come up with a scheme for regenerating the Insight
>tclIndex file?  I need to regenerate it, but as I recall the last
>conversation didn't converge on a method.  How do other people do it?
>
>Tom

Run "make" from the source directory. Make sure tclsh is installed.



Syd Polk
jazzman@bayarea.net                 http://www.bayarea.net/~jazzman
"Let the music be your light." -- Dave Edwards, KUHF-FM, 1982

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

* Re: regenerating tclIndex
  2001-10-02 14:55 Syd Polk
@ 2001-10-02 14:55 ` Tom Tromey
  2001-10-02 15:51   ` Keith Seitz
  2001-11-18 22:36   ` Tom Tromey
  2001-11-18 21:32 ` Syd Polk
  1 sibling, 2 replies; 12+ messages in thread
From: Tom Tromey @ 2001-10-02 14:55 UTC (permalink / raw)
  To: Syd Polk; +Cc: Insight List

>>>>> "Syd" == Syd Polk <jazzman@bayarea.net> writes:

Tom> Did anybody ever come up with a scheme for regenerating the
Tom> Insight tclIndex file?  I need to regenerate it, but as I recall
Tom> the last conversation didn't converge on a method.  How do other
Tom> people do it?

Syd> Run "make" from the source directory. Make sure tclsh is installed.

That doesn't work.
The current gdbtk/library/Makefile still references itclsh3.0.

Tom

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

* regenerating tclIndex
@ 2001-10-02 14:41 Tom Tromey
  2001-11-18 18:02 ` Tom Tromey
  0 siblings, 1 reply; 12+ messages in thread
From: Tom Tromey @ 2001-10-02 14:41 UTC (permalink / raw)
  To: Insight List

Did anybody ever come up with a scheme for regenerating the Insight
tclIndex file?  I need to regenerate it, but as I recall the last
conversation didn't converge on a method.  How do other people do it?

Tom

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

end of thread, other threads:[~2001-11-19 20:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1006196231.29860.ezmlm@sources.redhat.com>
2001-10-02 16:09 ` regenerating tclIndex Jim Ingham
2001-11-19 11:26   ` Jim Ingham
2001-10-02 14:55 Syd Polk
2001-10-02 14:55 ` Tom Tromey
2001-10-02 15:51   ` Keith Seitz
2001-10-03  9:39     ` Tom Tromey
2001-11-19 12:25       ` Tom Tromey
2001-11-19  8:46     ` Keith Seitz
2001-11-18 22:36   ` Tom Tromey
2001-11-18 21:32 ` Syd Polk
  -- strict thread matches above, loose matches on Subject: below --
2001-10-02 14:41 Tom Tromey
2001-11-18 18:02 ` Tom Tromey

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