Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[patch] for mig check in GDB's configure

2 views
Skip to first unread message

陆岳

unread,
May 3, 2013, 3:15:39 AM5/3/13
to bug-...@gnu.org
hi,

I found that when you missing the mid under GNU Hurd, the GDB's
configure doesn't complain about that.
But you will get a compile error until you do the make.
So I add the check.
By the way, I just check the existence of mig, have not check whether
mig work correct yet.

This is my first time to submit patch, I just build this by git
format-patch. If something wrong, just tell me, I will fix it.


>From 56d4bd42a8620d0f85987d83eb7720d67350da01 Mon Sep 17 00:00:00 2001
From: hacklu <hacklu....@gmail.com>
Date: Fri, 3 May 2013 15:02:50 +0800
Subject: [PATCH] patch for check mig under GNU Hurd

if no mig for use then exit!
---
gdb/configure | 9 +++++++++
gdb/configure.ac | 9 +++++++++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/gdb/configure b/gdb/configure
index c5ad94b..5c071e5 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -6229,6 +6229,15 @@ else
MIG="$ac_cv_prog_MIG"
fi

+case "${host}" in
+ *-linux*|*-k*bsd-gnu*)
+ ;;
+ i[3456789]86-*-gnu*)
+ if test "$MIG" = "" ; then
+ as_fn_error "no mig for use" "$LINENO" 5
+ fi
+ ;;
+esac

# ---------------------- #
# Checks for libraries. #
diff --git a/gdb/configure.ac b/gdb/configure.ac
index bb7fbdd..f440ea9 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -488,6 +488,15 @@ AC_CHECK_TOOL(WINDRES, windres)

# Needed for GNU/Hurd.
AC_CHECK_TOOL(MIG, mig)
+case "${host}" in
+ *-linux*|*-k*bsd-gnu*)
+ ;;
+ i[[3456789]]86-*-gnu*)
+ if test "$MIG" = "" ; then
+ AC_MSG_ERROR([no mig for use])
+ fi
+ ;;
+esac

# ---------------------- #
# Checks for libraries. #
--
1.7.0.4


--
Yue Lu (陆岳)

Thomas Schwinge

unread,
May 3, 2013, 4:28:02 AM5/3/13
to 陆岳, bug-...@gnu.org, gdb-p...@sourceware.org
Hi!

Adding the gdb-patches mailing list. While of course this is only
relevant for the GNU Hurd port of GDB, it will get committed to the GDB
source repository, so should be reviewed on the gdb-patches mailing list.
It is fine (and encouraged) to CC the bug-hurd mailing list for
Hurd-specific issues, though.


For the GDB folks, Yue Lu is a candidate for improving the GNU Hurd GDB
port as a Google Summer of Code 2013 project, and is sending here a first
patch. Welcome to the project!


On Fri, 3 May 2013 15:15:39 +0800, 陆岳 <hacklu....@gmail.com> wrote:
> I found that when you missing the mid under GNU Hurd, the GDB's
> configure doesn't complain about that.
> But you will get a compile error until you do the make.
> So I add the check.
> By the way, I just check the existence of mig, have not check whether
> mig work correct yet.
>
> This is my first time to submit patch, I just build this by git
> format-patch. If something wrong, just tell me, I will fix it.

I acknowledge the issue: as $(MIG) will be empty, you'll get the command
line »gcc [...] | -cc [...]« resulting in a confusing »-cc: command not
found«. So, thanks for the patch! Given this is your first patch, it
looks very good already!


> Subject: [PATCH] patch for check mig under GNU Hurd
>
> if no mig for use then exit!

As GDB is a GNU project, instead of just a commit message it uses
ChangeLog files. See the several ChangeLog files in the GDB sources. As
your change only touches files in gdb/, only gdb/ChangeLog is relevant.
The format of the individual "snippets" is rather strict, see the
existing ones as well as this chapter in the GNU Coding Standards:
<http://www.gnu.org/prep/standards/html_node/Change-Logs.html>.

What developers typically do when committing their changes is re-using
the ChangeLog snippet as the commit message. Commits are still done with
CVS, by the way -- the Git repository is just a read-only mirror. Until
you're approved for getting commit access yourself, another developer
will commit any approved patches for you. (I can do that then.)


> --- a/gdb/configure
> +++ b/gdb/configure

I take it you used autoconf to regenerate that file?


> --- a/gdb/configure.ac
> +++ b/gdb/configure.ac
> @@ -488,6 +488,15 @@ AC_CHECK_TOOL(WINDRES, windres)
>
> # Needed for GNU/Hurd.
> AC_CHECK_TOOL(MIG, mig)
> +case "${host}" in

Hmm, I think that instead of only examining the host system, $host, this
also needs to examine the target system, $target. (Please tell if the
difference between build, host, and target system is not clear to you.)
The MIG tool is used to generate files (from RPC definition files) that
are used by the native GDB port for GNU Hurd (which, of couse, is the
only GNU Hurd port that currently exists.) But if someone, for example,
builds GDB targeting mips-linux-gnu on a GNU Hurd system, they would not
need the MIG tool.

GDB folks, would it make sense to use something like:

case $gdb_native:$host in
[...]
yes:i[[3456]]86-*-gnu*)
[error if MIG not found]

..., to check that both host and target are GNU Hurd?

> + *-linux*|*-k*bsd-gnu*)
> + ;;

Very right: these triples need to be special-cased first, as the
following *-gnu* will also match i686-pc-linux-gnu, for example.

> + i[[3456789]]86-*-gnu*)

Typically, only i[3456]86 are used, I think. Or, just use i?86.

> + if test "$MIG" = "" ; then
> + AC_MSG_ERROR([no mig for use])

I'd say something like »MIG not found but required for $host«.

> + fi
> + ;;
> +esac
>
> # ---------------------- #
> # Checks for libraries. #


Can you change your patch according to my review and then resend it?
(Don't worry -- it is completely normal that patches are revised, even
several times, before they're approved. This helps to maintain a high
code quality.)


Grüße,
Thomas

陆岳

unread,
May 3, 2013, 6:43:49 AM5/3/13
to Thomas Schwinge, bug-...@gnu.org, gdb-p...@sourceware.org
Hi!

thanks for your review.

On Fri, May 3, 2013 at 4:28 PM, Thomas Schwinge <tho...@codesourcery.com> wrote:
>
> As GDB is a GNU project, instead of just a commit message it uses
> ChangeLog files. See the several ChangeLog files in the GDB sources. As
> your change only touches files in gdb/, only gdb/ChangeLog is relevant.
> The format of the individual "snippets" is rather strict, see the
> existing ones as well as this chapter in the GNU Coding Standards:
> <http://www.gnu.org/prep/standards/html_node/Change-Logs.html>.

I have modified the ChangeLog file under gdb/ .

>
>> --- a/gdb/configure
>> +++ b/gdb/configure
>
> I take it you used autoconf to regenerate that file?

Yes! I have already removed this.

>> --- a/gdb/configure.ac
>> +++ b/gdb/configure.ac
>> @@ -488,6 +488,15 @@ AC_CHECK_TOOL(WINDRES, windres)
>>
>> # Needed for GNU/Hurd.
>> AC_CHECK_TOOL(MIG, mig)
>> +case "${host}" in
>
> Hmm, I think that instead of only examining the host system, $host, this
> also needs to examine the target system, $target. (Please tell if the
> difference between build, host, and target system is not clear to you.)
> The MIG tool is used to generate files (from RPC definition files) that
> are used by the native GDB port for GNU Hurd (which, of couse, is the
> only GNU Hurd port that currently exists.) But if someone, for example,
> builds GDB targeting mips-linux-gnu on a GNU Hurd system, they would not
> need the MIG tool.
>

To my knowledge now, $target just need to set when building a compiler
which specify which plateform your compiler generate code for. When we
build GDB, it is trivial to check the variable.
In your example, builds GDB targeting mips-linux-gnu means the GDB is
running on mips-linux. So we only need to set the
$host=mips-linux-gnu, $build=*-*-gnu.
Maybe I have got a wrong understanding about these gcc terms.

> Can you change your patch according to my review and then resend it?
> (Don't worry -- it is completely normal that patches are revised, even
> several times, before they're approved. This helps to maintain a high
> code quality.)
>
the new one is here:

>From 13d3edd1f6dbbc20b2801cea1fc367bf9042f977 Mon Sep 17 00:00:00 2001
From: hacklu <hacklu....@gmail.com>
Date: Fri, 3 May 2013 18:27:08 +0800
Subject: [PATCH] Patch check mig on GNU Hurd

2013-05-3 hacklu <hacklu....@gmail.com>

* configure.ac : uncorrectly check for mig on GUN Hurd
* configure: Regenerate.
---
gdb/ChangeLog | 4 ++++
gdb/configure.ac | 9 +++++++++
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 12254b7..015a878 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-3 hacklu <hacklu....@gmail.com>
+
+ * configure.ac : uncorrectly check for mig on GUN Hurd
+ * configure: Regenerate.
2013-04-30 Samuel Thibault <samuel....@gnu.org>

* i386gnu-nat.c (CREG_OFFSET): New macro.
diff --git a/gdb/configure.ac b/gdb/configure.ac
index bb7fbdd..c1ee4cb 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -488,6 +488,15 @@ AC_CHECK_TOOL(WINDRES, windres)

# Needed for GNU/Hurd.
AC_CHECK_TOOL(MIG, mig)
+case "${host}" in
+ *-linux*|*-k*bsd-gnu*)
+ ;;
+ i[?]86-*-gnu*)
+ if test "$MIG" = "" ; then
+ AC_MSG_ERROR([MIG not found but required for $host])
+ fi
+ ;;
+esac

# ---------------------- #
# Checks for libraries. #

Ivan Shmakov

unread,
May 3, 2013, 8:57:21 AM5/3/13
to bug-...@gnu.org, gdb-p...@sourceware.org
>>>>> 陆岳 <hacklu....@gmail.com> writes:

[…]

A few minor points.

> From 13d3edd1f6dbbc20b2801cea1fc367bf9042f977 Mon Sep 17 00:00:00 2001
> From: hacklu <hacklu....@gmail.com>
> Date: Fri, 3 May 2013 18:27:08 +0800
> Subject: [PATCH] Patch check mig on GNU Hurd

> 2013-05-3 hacklu <hacklu....@gmail.com>

There should be two spaces between the name and email, too. And
the date should be 2013-05-03, as per ISO 8601. (One may want
to check the respective Wikipedia article here.) As in, e. g.:

$ date -uI
2013-05-03
$

Also, I'd urge you to use the “real” full name -- the same as
you'd use when filing a GSoC application, or copyright
assignment papers (as required by FSF), etc.

> * configure.ac : uncorrectly check for mig on GUN Hurd

• There should be no space before “:”;

• the sentence should begin with a capital letter, and end with
a period;

• s/GUN/GNU/.

Besides, I'm having trouble understanding the intended meaning
of this sentence. Shouldn't it be, say, as follows instead?

* configure.ac: Ensure MIG is available when building for
GNU Hurd.

[…]

> --- a/gdb/ChangeLog
> +++ b/gdb/ChangeLog
> @@ -1,3 +1,7 @@
> +2013-05-3 hacklu <hacklu....@gmail.com>
> +
> + * configure.ac : uncorrectly check for mig on GUN Hurd
> + * configure: Regenerate.
> 2013-04-30 Samuel Thibault <samuel....@gnu.org>

The same applies here. Also, there should be an empty line
between the ChangeLog entries.

[…]

> --- a/gdb/configure.ac
> +++ b/gdb/configure.ac
> @@ -488,6 +488,15 @@ AC_CHECK_TOOL(WINDRES, windres)

> # Needed for GNU/Hurd.
> AC_CHECK_TOOL(MIG, mig)
> +case "${host}" in

Note that ‘{}’ are superfluous here; case "$host" will do the
same, but is a tiny bit shorter.

> + *-linux*|*-k*bsd-gnu*)
> + ;;
> + i[?]86-*-gnu*)
> + if test "$MIG" = "" ; then
> + AC_MSG_ERROR([MIG not found but required for $host])
> + fi
> + ;;

I guess that both cases should use the same indentation level —
either 4 spaces or 8 (or a TAB.) Check the rest of the GDB .ac
code for the currently preferred style.

Also, it's possible to avoid an indentation in the first case
altogether, like:

+ *-linux*|*-k*bsd-gnu*) ;;

Again, look at the rest of the GDB code and use a matching
style.

> +esac

[…]

--
FSF associate member #7257

Pedro Alves

unread,
May 3, 2013, 10:51:24 AM5/3/13
to Thomas Schwinge, 陆岳, bug-...@gnu.org, gdb-p...@sourceware.org
On 05/03/2013 09:28 AM, Thomas Schwinge wrote:
> Hmm, I think that instead of only examining the host system, $host, this
> also needs to examine the target system, $target. (Please tell if the
> difference between build, host, and target system is not clear to you.)
> The MIG tool is used to generate files (from RPC definition files) that
> are used by the native GDB port for GNU Hurd (which, of couse, is the
> only GNU Hurd port that currently exists.) But if someone, for example,
> builds GDB targeting mips-linux-gnu on a GNU Hurd system, they would not
> need the MIG tool.
>
> GDB folks, would it make sense to use something like:
>
> case $gdb_native:$host in
> [...]
> yes:i[[3456]]86-*-gnu*)
> [error if MIG not found]
>
> ..., to check that both host and target are GNU Hurd?

Sure. Looking at config/i386/i386gnu.mh, NAT_GENERATED_FILES
in particular, I think gdb will want to run mig even on
cross gdbs hosted on GNU Hurd, though...

--
Pedro Alves


Pino Toscano

unread,
May 3, 2013, 11:22:13 AM5/3/13
to bug-...@gnu.org
Hi,

Alle venerdì 3 maggio 2013, 陆岳 ha scritto:
> --- a/gdb/configure.ac
> +++ b/gdb/configure.ac
> @@ -488,6 +488,15 @@ AC_CHECK_TOOL(WINDRES, windres)
>
> # Needed for GNU/Hurd.
> AC_CHECK_TOOL(MIG, mig)
> +case "${host}" in
> + *-linux*|*-k*bsd-gnu*)
> + ;;
> + i[[3456789]]86-*-gnu*)
> + if test "$MIG" = "" ; then
> + AC_MSG_ERROR([no mig for use])
> + fi
> + ;;
> +esac

instead of the above, what about something like this:
case "${host_os}" in
gnu*)
# Needed for GNU/Hurd.
AC_CHECK_TOOL(MIG, mig)
if test "$MIG" = "" ; then
AC_MSG_ERROR([no mig for use])
fi
;;
esac

that is, look for mig as mandatory only on Hurd, using a less-ambiguous
variable as $host_os.

--
Pino Toscano
signature.asc

Yue Lu

unread,
May 4, 2013, 3:51:14 AM5/4/13
to Pino Toscano, bug-...@gnu.org
Hi,

On Fri, May 3, 2013 at 11:22 PM, Pino Toscano <toscan...@tiscali.it> wrote:
> Hi,
>
> instead of the above, what about something like this:
> case "${host_os}" in
> gnu*)
> # Needed for GNU/Hurd.
> AC_CHECK_TOOL(MIG, mig)
> if test "$MIG" = "" ; then
> AC_MSG_ERROR([no mig for use])
> fi
> ;;
> esac
>
> that is, look for mig as mandatory only on Hurd, using a less-ambiguous
> variable as $host_os.

I almost agree with you, the $host_os is much better than $host.
in hurd it just says gnu0.3. we needn't to check for linux which says linux-gnu




--
Yue Lu (陆岳)

Yue Lu

unread,
May 4, 2013, 4:29:01 AM5/4/13
to Ivan Shmakov, bug-...@gnu.org, gdb-p...@sourceware.org
Hi!

thanks for your review.

On Fri, May 3, 2013 at 8:57 PM, Ivan Shmakov <onei...@gmail.com> wrote:
> A few minor points.
>

I have update this patch after your feedback.

>From b50f9b2f9ab1792ad584d07c9d2da3c5857d82fe Mon Sep 17 00:00:00 2001
From: hacklu <hacklu....@gmail.com>
Date: Sat, 4 May 2013 16:17:25 +0800
Subject: [PATCH] Ensure MIG is available On GNU Hurd

* configure.ac: Ensure MIG is available when building for GNU
* Hurd.
* configure: Regenerate.
---
gdb/ChangeLog | 5 +++++
gdb/configure.ac | 11 +++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 12254b7..4fa69ac 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-04 Yue Lu <hacklu....@gmail.com>
+
+ * configure.ac: Ensure MIG is available when building for GNU Hurd.
+ * configure: Regenerate.
+
2013-04-30 Samuel Thibault <samuel....@gnu.org>

* i386gnu-nat.c (CREG_OFFSET): New macro.
diff --git a/gdb/configure.ac b/gdb/configure.ac
index bb7fbdd..29c68b4 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -486,8 +486,15 @@ AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(DLLTOOL, dlltool)
AC_CHECK_TOOL(WINDRES, windres)

-# Needed for GNU/Hurd.
-AC_CHECK_TOOL(MIG, mig)
+case $host_os in
+ gnu* )
+ # Needed for GNU/Hurd.
+ AC_CHECK_TOOL(MIG, mig)
+ if test "$MIG" = "" ; then
+ AC_MSG_ERROR([MIG not found but required for $host])
+ fi
+ ;;
+esac

Yue Lu

unread,
May 5, 2013, 1:30:43 AM5/5/13
to Doug Evans, bug-...@gnu.org, Thomas Schwinge, gdb-patches
Hi,

On Sun, May 5, 2013 at 1:22 AM, Doug Evans <d...@google.com> wrote:
> On Fri, May 3, 2013 at 3:43 AM, 陆岳 <hacklu....@gmail.com> wrote:
>>> Hmm, I think that instead of only examining the host system, $host, this
>>> also needs to examine the target system, $target. (Please tell if the
>>> difference between build, host, and target system is not clear to you.)
>>> The MIG tool is used to generate files (from RPC definition files) that
>>> are used by the native GDB port for GNU Hurd (which, of couse, is the
>>> only GNU Hurd port that currently exists.) But if someone, for example,
>>> builds GDB targeting mips-linux-gnu on a GNU Hurd system, they would not
>>> need the MIG tool.
>>>
> I can run gdb on an x86 system and debug a program running on a mips
> system via gdbserver (or some other program that speaks gdb's remote
> protocol).
>
> --build = system you're building the tool on
> --host = system the tool will run on
> --target = system the tool will handle or target (generate code for in
> the case of gcc, debug in the case of gdb)
>
> [These terms are common to all GNU tools, not just gcc btw.]

Thanks for the explanation. I have known about these three terms.

> So for example I *could*, given appropriately ported tools,
> build gdb on x86, run it on mips, and have it debug programs running on arm.

But I have one more question, why the one run on GNU Hurd which
targeting arm doesn't need to use MIG? As it run under GNU Hurd, it
must use the message transport facility and need to use MIG to
generate the interface file automatically or someone write it by
hands.

--
Yue Lu (陆岳)

Doug Evans

unread,
May 4, 2013, 1:22:31 PM5/4/13
to 陆岳, bug-...@gnu.org, Thomas Schwinge, gdb-patches
On Fri, May 3, 2013 at 3:43 AM, 陆岳 <hacklu....@gmail.com> wrote:
>> Hmm, I think that instead of only examining the host system, $host, this
>> also needs to examine the target system, $target. (Please tell if the
>> difference between build, host, and target system is not clear to you.)
>> The MIG tool is used to generate files (from RPC definition files) that
>> are used by the native GDB port for GNU Hurd (which, of couse, is the
>> only GNU Hurd port that currently exists.) But if someone, for example,
>> builds GDB targeting mips-linux-gnu on a GNU Hurd system, they would not
>> need the MIG tool.
>>
>
> To my knowledge now, $target just need to set when building a compiler
> which specify which plateform your compiler generate code for. When we
> build GDB, it is trivial to check the variable.
> In your example, builds GDB targeting mips-linux-gnu means the GDB is
> running on mips-linux. So we only need to set the
> $host=mips-linux-gnu, $build=*-*-gnu.
> Maybe I have got a wrong understanding about these gcc terms.

I can run gdb on an x86 system and debug a program running on a mips
system via gdbserver (or some other program that speaks gdb's remote
protocol).

--build = system you're building the tool on
--host = system the tool will run on
--target = system the tool will handle or target (generate code for in
the case of gcc, debug in the case of gdb)

[These terms are common to all GNU tools, not just gcc btw.]

All three can be different for gdb as well as gcc.

Doug Evans

unread,
May 5, 2013, 1:35:25 PM5/5/13
to Yue Lu, bug-...@gnu.org, Thomas Schwinge, gdb-patches
On Sat, May 4, 2013 at 10:30 PM, Yue Lu <hacklu....@gmail.com> wrote:
> But I have one more question, why the one run on GNU Hurd which
> targeting arm doesn't need to use MIG? As it run under GNU Hurd, it
> must use the message transport facility and need to use MIG to
> generate the interface file automatically or someone write it by
> hands.

That's a good question (assuming I understand it, it's a bit hard to
parse as written). I don't know MIG or GNU Hurd.
This stuff is pretty straightforward though, there's no magic.
The answer depends on what GDB uses MIG for.

If GDB on Hurd uses MIG like GDB on Linux uses ptrace,
then that would explain it (again, assuming I understand the question).
But someone who knows Hurd and MIG will need to step up
and provide a real answer.

Thomas Schwinge

unread,
May 16, 2013, 5:55:12 PM5/16/13
to Yue Lu, bug-...@gnu.org, gdb-p...@sourceware.org
Hi!

Sorry for the delay.

On Sat, 4 May 2013 16:29:01 +0800, Yue Lu <hacklu....@gmail.com> wrote:
> * configure.ac: Ensure MIG is available when building for GNU
> * Hurd.

After reviewing and testing it, I now checked in your patch (very minor
coding style and wording changes). Congratulations to your first
contribution! :-)

2013-05-16 Yue Lu <hacklu....@gmail.com>

* configure.ac: Ensure MIG is available when building for GNU Hurd
hosts.
* configure: Regenerate.

Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.203
diff -u -p -r1.203 configure.ac
--- configure.ac 10 May 2013 16:10:40 -0000 1.203
+++ configure.ac 16 May 2013 21:50:18 -0000
@@ -486,8 +486,15 @@ AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(DLLTOOL, dlltool)
AC_CHECK_TOOL(WINDRES, windres)

-# Needed for GNU/Hurd.
-AC_CHECK_TOOL(MIG, mig)
+case $host_os in
+ gnu*)
+ # Needed for GNU Hurd hosts.
+ AC_CHECK_TOOL(MIG, mig)
+ if test x"$MIG" = x; then
+ AC_MSG_ERROR([MIG not found but required for $host hosts])
+ fi
+ ;;
+esac

# ---------------------- #
# Checks for libraries. #
Index: configure
===================================================================
RCS file: /cvs/src/src/gdb/configure,v
retrieving revision 1.391
diff -u -p -r1.391 configure
--- configure 10 May 2013 16:10:40 -0000 1.391
+++ configure 16 May 2013 21:50:20 -0000
[...]


Grüße,
Thomas

Thomas Schwinge

unread,
May 16, 2013, 6:10:10 PM5/16/13
to Doug Evans, Yue Lu, bug-...@gnu.org, gdb-patches
Hi!
That's basically it. Basically, RPC interface definition files (*.defs,
included with the Hurd system) basically describe all possible "system
calls", including ptrace, and the MIG tool translates these into C code
stub functions.

So, MIG is needed everywhere where a Linux port of GDB would talk to the
kernel. This means in the Hurd context: a) for a native configuration
(GDB host equals GDB target: runs on the host, speaks to the target
(which is the same system, hence native); the only configuration existing
right now), or b) -- to be worked on -- via gdbserver, where the GDB host
can be anything, the GDB target is Hurd (assuming the GDB host is not
Hurd, then MIG is not needed, because that GDB configuration will not
directly interact with a Hurd system), and for gdbserver itself, again
host equals target, as it runs on the host, and speaks to the target
(which is the same system, hence native).


Grüße,
Thomas

Joel Brobecker

unread,
May 17, 2013, 1:30:42 AM5/17/13
to Thomas Schwinge, Yue Lu, bug-...@gnu.org, gdb-p...@sourceware.org
Hi Thomas and Yue,

> After reviewing and testing it, I now checked in your patch (very minor
> coding style and wording changes). Congratulations to your first
> contribution! :-)
>
> 2013-05-16 Yue Lu <hacklu....@gmail.com>
>
> * configure.ac: Ensure MIG is available when building for GNU Hurd
> hosts.
> * configure: Regenerate.

I cannot remember if we said Yue had a copyright assignment on file,
or not. I checked the file, and couldn't locate him. Can you clarify?

This patch is small enough that it can be accepted without regardless;
but if we do, I'd like to mark it as such in the ChangeLog entry
(using "(tiny change)", as mentioned by the guide for GNU maintainers).

Thank you!
--
Joel

Yue Lu

unread,
May 17, 2013, 2:34:10 AM5/17/13
to Joel Brobecker, bug-...@gnu.org, Thomas Schwinge, gdb-p...@sourceware.org
Hi,

On Fri, May 17, 2013 at 1:30 PM, Joel Brobecker <brob...@adacore.com> wrote:
> Hi Thomas and Yue,
> I cannot remember if we said Yue had a copyright assignment on file,
> or not. I checked the file, and couldn't locate him. Can you clarify?
>

As this is the first time for me to submit patches, I don't know how
to do the copyright assignment.
Could you please tell me how to do that?
thanks.

--
Yue Lu (陆岳)

Yue Lu

unread,
May 17, 2013, 2:39:28 AM5/17/13
to Thomas Schwinge, bug-...@gnu.org
Hi Thomas,

On Fri, May 17, 2013 at 5:55 AM, Thomas Schwinge
<tho...@codesourcery.com> wrote:
>
> After reviewing and testing it, I now checked in your patch (very minor
> coding style and wording changes). Congratulations to your first
> contribution! :-)

So thanks for your patience to guide me. I am entering the door of
open source world. Aha ^_^.

--
Yue Lu (陆岳)

Thomas Schwinge

unread,
May 17, 2013, 3:00:02 AM5/17/13
to Yue Lu, Joel Brobecker, bug-...@gnu.org, gdb-p...@sourceware.org
Hi!

On Fri, 17 May 2013 09:30:42 +0400, Joel Brobecker <brob...@adacore.com> wrote:
> > After reviewing and testing it, I now checked in your patch (very minor
> > coding style and wording changes). Congratulations to your first
> > contribution! :-)
> >
> > 2013-05-16 Yue Lu <hacklu....@gmail.com>
> >
> > * configure.ac: Ensure MIG is available when building for GNU Hurd
> > hosts.
> > * configure: Regenerate.
>
> I cannot remember if we said Yue had a copyright assignment on file,
> or not. I checked the file, and couldn't locate him. Can you clarify?

No, we have not yet started that process -- but indeed perhaps already
should. Yue, the GDB project, as part of the GNU project, requires
copyright assignment for any substantial changes,
<http://www.gnu.org/licenses/why-assign.html>. For simplicity, I suggest
you use the »assignment form for your past and future changes«, which I
have attached to this email. Would that be OK for you? As you're
working on Hurd-related things, I suggest you request papers for all
relevant projects, so please specify the following: GDB, Hurd, GNU Mach,
glibc. When you send the email, please put me in CC.

> This patch is small enough that it can be accepted without regardless;
> but if we do, I'd like to mark it as such in the ChangeLog entry
> (using "(tiny change)", as mentioned by the guide for GNU maintainers).

Sorry, I have not been aware of actually having to do this. Now added.


Grüße,
Thomas


request-assign.future

Joel Brobecker

unread,
May 17, 2013, 3:07:14 AM5/17/13
to Thomas Schwinge, Yue Lu, bug-...@gnu.org, gdb-p...@sourceware.org
> No, we have not yet started that process -- but indeed perhaps already
> should. Yue, the GDB project, as part of the GNU project, requires
> copyright assignment for any substantial changes,
> <http://www.gnu.org/licenses/why-assign.html>. For simplicity, I suggest
> you use the »assignment form for your past and future changes«, which I
> have attached to this email. Would that be OK for you? As you're
> working on Hurd-related things, I suggest you request papers for all
> relevant projects, so please specify the following: GDB, Hurd, GNU Mach,
> glibc. When you send the email, please put me in CC.
>
> > This patch is small enough that it can be accepted without regardless;
> > but if we do, I'd like to mark it as such in the ChangeLog entry
> > (using "(tiny change)", as mentioned by the guide for GNU maintainers).
>
> Sorry, I have not been aware of actually having to do this. Now added.

Wonderful - thanks for taking care of Yue. Do not hesitate to ask me
if anyone has any question.

--
Joel

0 new messages