Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: "J. Johnston" <jjohnstn@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: libunwind basic support
Date: Fri, 14 Nov 2003 00:06:00 -0000	[thread overview]
Message-ID: <3FB41C64.10603@redhat.com> (raw)
In-Reply-To: <3FB40EC4.4000406@redhat.com>


> It is possible for the user to enable libunwind but the header files are not there.  I am guessing you would prefer compilation to fail in this case so I have removed the check.

Yes.  If the user forces the use of libunwind, but it isn't there, the 
user should loose.

> I have added comments for the search unwind table call.

Thanks.


> Index: configure.in
> ===================================================================
> RCS file: /cvs/src/src/gdb/configure.in,v
> retrieving revision 1.132
> diff -u -r1.132 configure.in
> --- configure.in    3 Sep 2003 15:02:48 -0000    1.132
> +++ configure.in    22 Oct 2003 23:36:21 -0000
> @@ -192,6 +192,33 @@
>      enable_gdbtk=no ;;
>  esac
> 
> 
> Based on 12.1 Working With External Software
> http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_chapter/autoconf_12.html#SEC130
> 
> I suspect that this should be --with (external libunwind software), and not --enable (gdb feature), although, to be honest, its hard to tell which it should be.
> 
> Anyone?
> 
> 
> From discussions with Jeff Law when I was doing configuration for newlib, he told me that --enable should be used for on/off decisions in preference to --with.  I don't personally care so I have switched to --with.

Thanks.

You're right that the lines are blured.  enable/disable is for 
controlling the presence of an internal feature while with/without is 
for controlling a dependency/use of an external program, or library. 
Unfortunatly, here the decision to build GDB with/without the external 
libunwind library has the consequence of determining if GDB should 
enable/disable the internal (but not user visible) libunwind unwinder. 
I think, based on the presence of X as an example in the manual, the 
with/without takes precidence.

So, yes all ok.
Andrew



> Index: libunwind-frame.c



  reply	other threads:[~2003-11-14  0:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-15 21:29 J. Johnston
2003-10-15 22:40 ` Kevin Buettner
2003-10-16 20:19 ` Andrew Cagney
2003-10-16 21:38   ` J. Johnston
2003-10-22 23:38     ` J. Johnston
2003-11-11 23:09       ` Andrew Cagney
2003-11-13 23:07         ` J. Johnston
2003-11-14  0:06           ` Andrew Cagney [this message]
2003-11-14 21:19             ` J. Johnston

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=3FB41C64.10603@redhat.com \
    --to=ac131313@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jjohnstn@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