Fwd: A cscope-like gcc plugin

22 views
Skip to first unread message

asmwarrior

unread,
Dec 5, 2012, 4:54:55 AM12/5/12
to Code::Blocks中国开发组
这个看起来很牛逼啊!


-------- Original Message --------
Subject: A cscope-like gcc plugin
Date: Wed, 5 Dec 2012 17:14:57 +0800
From: Yunfeng ZHANG <zyf.z...@gmail.com>
To: g...@gcc.gnu.org
Newsgroups: gmane.comp.gcc.devel

Hi all:
I'm pleased to announce my gcc plugin on gcc-4.6.3 has been released, it
collects data from gcc compilation stage and dump them to sqlite-database just
like cscope, but with later enhancement.
1) Function alias. To linux, later code often makes you confusion.
f_ops fs = { .open = ext2_open, };
void foo(void)
{
fs.open = ext2_open;
...
fs.open(); // << which function will be called, where is it?
}
The feature treats `ext2_open' as an alias of `open'. So when you search
`open', jump to `ext2_open'. Of course, you can get `ext2_open' is called by
`foo' reversely.
2) Whether current line is skipped by `#ifdef/#if'.
3) Extract defintion beyond macro tokens.

Tested projects are mainly linux-2.6.35 (mips). Other source compiled include
gcc-4.6.3, glibc-2.13, gdb-7.4 of mips, qemu-1.1.1 of x86.

Go from doc.txt of attachment, or http://gccsymdb.googlecode.com/svn/tags/v3/.
Yunfeng Zhang



symdb.tgz

xunxun

unread,
Dec 5, 2012, 7:07:25 AM12/5/12
to chi...@googlegroups.com
我想在我原来做的mingw平台插件功能的基础上改进一番(增加一个链接器导出exe符号开关),这样可以增强普遍性,不用再单独上传--enable-plugin的版本了,这样类似的插件都能较好的使用吧

--
您收到此信息是由于您订阅了 Google 论坛“Code::Blocks中国开发组”论坛。
要在此论坛发帖,请发电子邮件到 chi...@googlegroups.com
要退订此论坛,请发邮件至 chinacb+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com.hk/group/chinacb?hl=zh-CN 访问
该论坛



--
Best Regards,
xunxun

asmwarrior

unread,
Dec 5, 2012, 7:31:22 AM12/5/12
to chi...@googlegroups.com, xunxun
On 2012-12-5 20:07, xunxun wrote:
> 我想在我原来做的mingw平台插件功能的基础上改进一番(增加一个链接器导出exe符号开关),这样可以增强普遍性,不用再单独上传--enable-plugin的版本了,这样类似的插件都能较好的使用吧
是啊,要是有这个功能,那么gcc在windows下的插件开发就容易多了。
Reply all
Reply to author
Forward
0 new messages