Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Add support for --enable-lmcheck configure option.
Date: Tue, 12 Jun 2012 16:55:00 -0000	[thread overview]
Message-ID: <20120612165523.GR2687@adacore.com> (raw)
In-Reply-To: <20120612074215.GB4374@host2.jankratochvil.net>

> this is bloating the configure script + configure help.  Just use:
> 	LDFLAGS=-lmcheck ./configure ...
> 
> 
> > I don't think I'll personally use the --disable-libmcheck on a snapshot,
> > but someone distributing a snaphot version might enjoy it too.
> 
> Yes:
> 	http://pkgs.fedoraproject.org/gitweb/?p=gdb.git;a=blob_plain;f=gdb-disable-mcheck.patch;hb=master
> 
> But I do not find it so important to make a configure option to it.

I read your answer as: "I do not object, but I don't think it is useful".
Therefore, I would like to keep the patch on the table and see if there
are objections. Otherwise, I'd like to commit it, because I think it is
going to be useful.

> Given that --disable-libmcheck for snapshot may make some sense I do not
> oppose it but I do not think it is worth it, it is a corner case where one can
> edit configure or Makefile IMO.

I don't want people to have to modify the sources or maintain such
a modification in their sources. I think that this is unfriendly,
especially given the small size of the patch. Saying that is is
bloating (sic) the configure script and help is a little extreme,
if you ask me.

> I understand the reason is to workaround current GDB bugs exposed by -lmcheck.
> This is sure not the right solution.

This is absolutely wrong. Maybe some people might want to use it that
way, but that is not my goal. It seemed easy to assume that, but that
is not the case. I think it is a very valuable addition for developers,
and I just fixed one buffer overflow thanks to it yesterday. And I expect
that all AdaCore developers will be building GDB with -lmcheck, even
the release versions.

-- 
Joel


  reply	other threads:[~2012-06-12 16:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-11 20:39 Joel Brobecker
2012-06-12  7:42 ` Jan Kratochvil
2012-06-12 16:55   ` Joel Brobecker [this message]
2012-06-12 17:00     ` Jan Kratochvil
2012-07-25 18:39 ` Joel Brobecker

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=20120612165523.GR2687@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@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