public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Zirong Lang <zlang@redhat.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] aiocp: modify segfault in dev_block_size_by_path
Date: Thu, 30 Apr 2015 08:56:58 +0200	[thread overview]
Message-ID: <20150430065658.GA479@rei.suse.de> (raw)
In-Reply-To: <1822683538.7446641.1430373748322.JavaMail.zimbra@redhat.com>

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.

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
chrubis@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

      parent reply	other threads:[~2015-04-30  6:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1430295293-13106-1-git-send-email-zlang@redhat.com>
2015-04-29 14:09 ` [LTP] [PATCH] aiocp: modify segfault in dev_block_size_by_path Cyril Hrubis
     [not found]   ` <1822683538.7446641.1430373748322.JavaMail.zimbra@redhat.com>
2015-04-30  6:56     ` Cyril Hrubis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150430065658.GA479@rei.suse.de \
    --to=chrubis@suse.cz \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=zlang@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox