This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Add support for --enable-lmcheck configure option.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 12 Jun 2012 09:42:16 +0200
- Subject: Re: [RFA] Add support for --enable-lmcheck configure option.
- References: <1339447127-314-1-git-send-email-brobecker@adacore.com>
Hi Joel,
On Mon, 11 Jun 2012 22:38:47 +0200, Joel Brobecker wrote:
> This allows the user to enable this option at configure time if building
> a release,
[...]
> It might be useful
> later on, when debugging memory problems on a release version of GDB.
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.
> OK?
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 understand the reason is to workaround current GDB bugs exposed by -lmcheck.
This is sure not the right solution.
Regards,
Jan