Bug: class browser misses certain class members

Dave Carrigan dave at rudedog.org
Thu Jan 8 02:14:04 UTC 2004


[ I am not subscribed to the list, so please CC me on any responses ]

I'm testing out kdevelop 3 (3.2.0-0+cvs20040102+as). I am especially
impressed with the debugger interface, which is the best I've seen for
Linux so far. But, I do have a problem with the class browser.

I do PalmOS development, and the nature of the Palm dragonball processor
requires that I split functions across multiple code sections. This is
done as follows:

  class foo {
    int member(int a) __attribute__ ((section ("somesect")));
    void another_member(int b) __attribute__ ((section ("othersect")));
    char andanother(char* c); // This is put into the default text section
  };

To simplify that, I actually do

 --- global.h ---
 #define SOMESECT __attribute__ ((section ("somesect")))
 #define OTHERSECT __attribute__ ((section ("othersect")))

 --- foo.h ---
 #include "global.h"
 class foo {
    int member(int a) SOMESECT;
    void another_member(int b) OTHERSECT;
    char andanother(char* c); // This is put into the default text section
 };

The problem is that the kdevelop class browser doesn't recognize the
members that have been declared in other sections. The browser will list
andanother(), but it doesn't list member() or another_member().

It appears that it's only the declaration that kdevelop can't find. If I
right-click inside foo.h, the the "Go To Definition" menu lists all the
members, but the "Go To Declaration" menu lists only the members that
don't have section attributes.

-- 
Dave Carrigan
Seattle, WA, USA
dave at rudedog.org | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL

Dave is currently listening to Wide Mouth Mason - Reconsider (Rained Out Parade)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20040108/e5357632/attachment.sig>


More information about the KDevelop-devel mailing list