public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Asmwarrior <asmwarrior@gmail.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb@sourceware.org,
	 MinGW Users List <mingw-users@lists.sourceforge.net>,
	Chris Sutcliffe <ir0nh34d@gmail.com>,
	Xun Xun <xunxun1982@gmail.com>
Subject: Re: gdb (gdbserver.exe) build problem under msys
Date: Thu, 27 Oct 2011 07:10:00 -0000	[thread overview]
Message-ID: <4EA8C121.8010505@gmail.com> (raw)
In-Reply-To: <201110261536.18038.pedro@codesourcery.com>

I tried again, and still failed.

This time, I found the config.h under gdbserver was overwritten by some
script I don't know when running make.
Here is the base steps:
1, running the toplevel configure.
2, running "make" command. (this will automatically run configure and
make in each sub-folders)

I monitor the folder build/gdb/gdbserver

At some time there will be a config.h file generated, and I opened it.
and all the definition macros seems correct.

But after building the gdb.exe, I found that the config.h file under
 build/gdb/gdbserver was changed (overwritten by some unknown reason),
and its definition was wrong. so building gdbserver.exe failed.

That's too strange. It looks like other configuration/make stages will
change the config.h under gdbsever?

---------------------------------------------------------------------
Here is another test:

If I create a new build folder, and did the things below:
cd build
mkdir gdb
CFLAGS="-O2 -fno-omit-frame-pointer -mtune=i686" \
../../gdb/gdb/configure \
--prefix=/mingw \
--host=mingw32 \
--build=mingw32 \
--target=mingw32 \
--with-python=/python/python \
--with-expat \
--disable-nls
---------------------------------------------------------------------
After the configure, I check the file build/gdb/gdbserver/config.h
It was correct.


But if I run such configure steps on my previous build tree.(the build
tree I failed building gdbserver.exe)
then, the generated build/gdb/gdbserver/config.h was wrong.

So, what I can guess is that some parent level configure setting will
affect the inner folder setting? Or the make command will later change
the inner folder's config.h?

thanks.
asmwarrior


  parent reply	other threads:[~2011-10-27  2:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-26 14:36 asmwarrior
2011-10-26 14:49 ` Pedro Alves
2011-10-27  0:55   ` Asmwarrior
2011-10-27  2:31   ` Asmwarrior
2011-10-27  7:10   ` Asmwarrior [this message]
2011-10-27 14:48   ` asmwarrior
2011-10-26 16:37 ` Joel Brobecker
2011-10-26 19:10   ` Pedro Alves
2011-10-26 23:10   ` Petr Hluzín

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=4EA8C121.8010505@gmail.com \
    --to=asmwarrior@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=ir0nh34d@gmail.com \
    --cc=mingw-users@lists.sourceforge.net \
    --cc=pedro@codesourcery.com \
    --cc=xunxun1982@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).