Re: Reusing GCC code in GDB

Joel Brobecker <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
> I’m looking at a GDB issue where GDB is not consistent with GCC*, and
>  requires (more or less) the rewrite of a self-contained section of
>  code in the GDB aarch64 backend.
>
> Given GCC already has the correct behaviour, I’m considering copying
> the block of GCC code (all from gcc/config/aarch64/aarch64.c) into GDB
> (gdb/aarch64-tdep.c) and replacing the GCC structures with the
> equivalent GDB ones. Unless the gdb code requires it, I’m NOT planning
> on changing the function names, code comments or code flow logic.
>
> Given that GDB and GCC are both FSF projects, I was hoping that this
> would be ok. However, I wanted to check first before I went ahead. 

My perspective is that this should be OK, because GCC requires
contributions to be assigned to the FSF, and the code is GPLv3.
It is similar, I think, with the libiberty code being shared
between GCC and binutils-gdb.


-- 
Joel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.