On Tue, March 27, 2007 12:44, Bill Au wrote:
> I download ctags 5.6 and built it on 32-bit RedHat Enterprise Linux 4.
> But when I build the same source on a 64-bit RedHat Enterprise Linux 4 and
> run it with the same option, it produces different output
> It produces an extra line from the static block:
> myObject CtagsTest.java /^ SomeClass myObject =$/
yes, i can reproduce this too. interestingly, you don't need to rebuild. i
ran the same 32-bit ctags binary (5.5.4, from Ubuntu 6.10) on a 32-bit
machine and a 64-bit machine, and got the same results as you.
> Any idea why ctags behaves differently on the 64-bit system.
because there's a bug...
> How do I get it to skip the static block on the 64-bit system?
find and fix the bug :-(
i ran it in gdb(1) with a breakpoint on makeTagEntry and saw that it's
called once on 32-bit and twice on 64-bit, but nothing stood out in the
stack trace on 64-bit to suggest we get there in any particularly unusual
Elliott Hughes, http://www.jessies.org/~enh/