• Bug#576242: gdb: Please support Renesas SH(sh4)

    From John Paul Adrian Glaubitz@21:1/5 to All on Mon Jan 30 12:30:02 2017
    XPost: linux.debian.bugs.dist

    Hi!

    We're currently working on improving SuperH support in Debian and Linux
    in general since the architecture is currently being redeveloped as an
    open source architecture called J-Core [1]. J-Core supports the SH-2 instruction set only, but it's expected to extend to SH-3 and SH-4
    in the future. Hence, having working native SH support for gdb on Linux
    would be very desirable.

    * Tom Tromey <tromey@redhat.com> pointed out that any significant
    contributors would need to sign copyright assignment papers, since
    the patch is far from trivial. Otherwise, GNU won't merge it, and it
    will bitrot constantly.
    <http://www.cygwin.com/ml/gdb-patches/2011-11/msg00499.html>

    This would actually the first and most important thing to do. I have
    tried contacting Takashi YOSHII but so far I had no success. One that
    could help would be Nobuhiro Iwamatsu, so I put him in CC. There is
    also Yutaka Niibe whom we can ask.

    Adrian

    [1] http://j-core.org/

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to All on Tue Feb 7 22:00:03 2017
    XPost: linux.debian.bugs.dist

    This is a multi-part message in MIME format.
    Hi!

    I have ported Yoshii-san's code to GDB 7.12, attaching an updated
    patch. A git repository with my linux-sh branch can be found in [1].

    Yutaka Niibe has already reached out to Renesas in Japan and is trying to
    get into touch with Yoshii-san, this might take a while though. However,
    I have talked with someone at the FSFE knowledgeable with open source
    licenses and it looks like we actually don't need the copyright assignment
    at all.

    If we needed the copyright assignment, we'd probably need it from Renesas anyway and not from Yoshii-san directly as he wrote the patch while working
    for Renesas who consequently are the copyright owners. And since Renesas already submitted their SH code to gcc, I assume they also already assigned
    the FSF copyright assignment (if that's actually needed).

    More updates coming soon.

    Thanks,
    Adrian

    [1] https://github.com/glaubitz/binutils-gdb/tree/linux-sh

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    Description: Add native support for Linux SH
    Author: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
    John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
    Last-Update: 2017-02-07

    --- gdb-7.12.orig/gdb/Makefile.in
    +++ gdb-7.12/gdb/Makefile.in
    @@ -1750,6 +1750,7 @@ ALLDEPFILES = \
    score-tdep.c \
    ser-go32.c ser-pipe.c ser-tcp.c ser-mingw.c \
    sh-tdep.c sh64-tdep.c shnbsd-tdep.c shnbsd-nat.c \
    + sh-linux-nat.c sh-linux-tdep.c \
    sol2-tdep.c \
    solib-svr4.c \
    sparc-linux-nat.c sparc-linux-tdep.c \
    --- /dev/null
    +++ gdb-7.12/gdb/config/sh/linux.mh
    @@ -0,0 +1,14 @@
    +# Host: Renesas Super-H running GNU/Linux
    +
    +NAT_FILE= nm-linux.h
    +NATDEPFILES= inf-ptrace.o fork-child.o \
    + sh-linux-nat.o \
    + proc-service.o linux-thread-db.o \
    + linux-nat.o linux-osdata.o linux-fork.o linux-procfs.o linux-ptrace.o \ + linux-personality.o \
    + linux-waitpid.o linux-namespaces.o
    +NAT_CDEPS = $(srcdir)/proc-service.list
    +
    +# The dynamically loaded libthread_db needs access to symbols in the
    +# gdb executable.
    +LOADLIBES = -ldl $(RDYNAMIC)
    --- /dev/null
    +++ gdb-7.12/gdb/config/sh/nm-linux.h
    @@ -0,0 +1,54 @@
    +/* Native-dependent definitions for SuperH running Linux, for GDB.
  • From Nobuhiro Iwamatsu@21:1/5 to All on Fri Mar 10 04:30:01 2017
    XPost: linux.debian.bugs.dist

    Hi, again.

    I add Takashi's to this thread.
    I contacted to Takashi, and talked about this problem.
    He said I would reply on this matter.
    Would you please wait for his reply?

    Best regards,
    Nobuhiro

    2017-03-10 10:22 GMT+09:00 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>:
    Hi,

    Sorry, replay was late.

    Takashi already leaved from Renesas, he is working other company.
    I am contacting him now, I am planning to ask him about this matter.

    Best regards,
    Nobuhiro

    2017-02-08 5:51 GMT+09:00 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>:
    Hi!

    I have ported Yoshii-san's code to GDB 7.12, attaching an updated
    patch. A git repository with my linux-sh branch can be found in [1].

    Yutaka Niibe has already reached out to Renesas in Japan and is trying to
    get into touch with Yoshii-san, this might take a while though. However,
    I have talked with someone at the FSFE knowledgeable with open source
    licenses and it looks like we actually don't need the copyright assignment >> at all.

    If we needed the copyright assignment, we'd probably need it from Renesas
    anyway and not from Yoshii-san directly as he wrote the patch while working >> for Renesas who consequently are the copyright owners. And since Renesas
    already submitted their SH code to gcc, I assume they also already assigned >> the FSF copyright assignment (if that's actually needed).

    More updates coming soon.

    Thanks,
    Adrian

    [1] https://github.com/glaubitz/binutils-gdb/tree/linux-sh

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913



    --
    Nobuhiro Iwamatsu
    iwamatsu at {nigauri.org / debian.org}
    GPG ID: 40AD1FA6



    --
    Nobuhiro Iwamatsu
    iwamatsu at {nigauri.org / debian.org}
    GPG ID: 40AD1FA6

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Nobuhiro Iwamatsu on Sat Mar 11 09:40:02 2017
    XPost: linux.debian.bugs.dist

    Hi Nobuhiro!

    On 03/10/2017 04:16 AM, Nobuhiro Iwamatsu wrote:
    I add Takashi's to this thread.
    I contacted to Takashi, and talked about this problem.
    He said I would reply on this matter.
    Would you please wait for his reply?

    Thank you very much for your initiative. Having native support for
    Linux SH in GDB will be very useful for the J-Core project.

    Now, I have already talked to the GDB people regarding this matter
    and they told me that Yoshii-san needs to sign the copyright assignment
    himself [1]. Yao Qi has provided a link which provide the necessary
    forms which need to be filled out by Yoshii-san. If he has any problems choosing the right form or needs additional advise, he can ask on the gdb-patches mailing list himself [2] or send an email to assign@gnu.org
    who will get back to him very quickly.

    On a sidenote: Yao Qi just recently happened to talk to Masami Hiramatsu
    who happened to have contacted to Yoshii-san at Linaro Connect [3], so
    with everyone involved, I am confident to get this resolved soon!

    I have one last important question regarding SuperH in general:

    Can you make a statement regarding the remaining SH7785LCR boards you
    have? Would you still be willing to set these up as buildds? If not,
    would it be possible that you hand these boards over to me? I could
    receive them in Japan, so they don't have to go abroad.

    We desperately need additional buildd hardware for the sh4 port since
    we currently have my one SH7785LCR board and two qemu-sh4 instances
    running only. I have more hardware (NextVoD boxes) but these currently
    lack support for a modern kernel (they are stuck at 2.6.32). It also
    doesn't matter if the boards are broken, those are definitely fixable.

    Please let's get the buildd issue resolved as well.

    Thanks,

    Adrian

    [1] https://sourceware.org/ml/gdb-patches/2017-02/msg00507.html
    [2] https://www.gnu.org/software/gdb/mailing-lists/
    [3] https://sourceware.org/ml/gdb-patches/2017-03/msg00127.html

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nobuhiro Iwamatsu@21:1/5 to All on Fri Mar 10 02:30:02 2017
    XPost: linux.debian.bugs.dist

    Hi,

    Sorry, replay was late.

    Takashi already leaved from Renesas, he is working other company.
    I am contacting him now, I am planning to ask him about this matter.

    Best regards,
    Nobuhiro

    2017-02-08 5:51 GMT+09:00 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>:
    Hi!

    I have ported Yoshii-san's code to GDB 7.12, attaching an updated
    patch. A git repository with my linux-sh branch can be found in [1].

    Yutaka Niibe has already reached out to Renesas in Japan and is trying to
    get into touch with Yoshii-san, this might take a while though. However,
    I have talked with someone at the FSFE knowledgeable with open source licenses and it looks like we actually don't need the copyright assignment
    at all.

    If we needed the copyright assignment, we'd probably need it from Renesas anyway and not from Yoshii-san directly as he wrote the patch while working for Renesas who consequently are the copyright owners. And since Renesas already submitted their SH code to gcc, I assume they also already assigned the FSF copyright assignment (if that's actually needed).

    More updates coming soon.

    Thanks,
    Adrian

    [1] https://github.com/glaubitz/binutils-gdb/tree/linux-sh

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913



    --
    Nobuhiro Iwamatsu
    iwamatsu at {nigauri.org / debian.org}
    GPG ID: 40AD1FA6

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Nobuhiro Iwamatsu on Wed May 17 12:10:02 2017
    XPost: linux.debian.bugs.dist

    Hello!

    On 03/10/2017 04:16 AM, Nobuhiro Iwamatsu wrote:
    I add Takashi's to this thread.
    I contacted to Takashi, and talked about this problem.
    He said I would reply on this matter.
    Would you please wait for his reply?

    Has there been any progress on this issue?

    Please note that if we wait too long, merging the patch becomes
    more difficult over the time as the upstream source progress.

    I'm currently rebasing the patch from time to time to make
    sure it remains mergable [1].

    Please don't let this take forever. Signing the FSF copyright
    assignment can be done quickly and Takashi just needs to do
    it to clear the path.

    Adrian

    [1] https://github.com/glaubitz/binutils-gdb/tree/linux-sh

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)