----- 原始邮件 -----
> 发件人: "Cyril Hrubis" <chru...@suse.cz>
> 收件人: "Zirong Lang" <zl...@redhat.com>
> 抄送: ltp-list@lists.sourceforge.net
> 发送时间: 星期四, 2015年 4 月 30日 下午 2:56:58
> 主题: Re: [PATCH] aiocp: modify segfault in dev_block_size_by_path
> 
> Hi!
> > Thanks. And I have another little question about debug ltp. When I hit this
> > segfault I got a core file, but that core without debug information.
> > So I tried to add "-g" for gcc and remove "-O2" option. I did that
> > job manually(deleted -O2 from every files contain it).
> > 
> > Is there some good configure or make options can be used to build a
> >  debug version ltp? Can you give me some steps to do that?
> 
> Hm, passing CFLAGS to configure should work as:
> 
> CFLAGS="-W -Wextra -O0 -ggdb" ./configure
> 
> But looking at what we have in LTP there are OPT_CFLAGS and WCFLAGS
> which adds the -O2 and more. So at the moment you have to modify CFLAGS
> manually in the include/mk/config.mk.

Thanks Cyril, Before you told me this, I tried to deleted all -O2 in 
include/mk/config.mk and
include/mk/config.mk.in, then make. I just wanted to know if there are some
simple parameters likes "DEBUG=DDEBUG" for make. 

Now I set CFLAGS before configure and modify include/mk/config.mk after
configure is useful.

Thanks,
Zorro

> 
> Does anybody have an idea why the CFLAGS are split among three variables
> to optimizations and warnings? It does no make much sense to me. There
> is only one place in the source tree where these are redefined, I will
> check if that is really needed and possibly get rid of this mess. Is
> anybody opposed?
> 
> --
> Cyril Hrubis
> chru...@suse.cz
> 

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to