This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20836] C++ compilation of GDB codebase


https://sourceware.org/bugzilla/show_bug.cgi?id=20836

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
> I have observed that in GDB 7.12, only some part (namely files under "gdb/" 
> folder) are compiled using C++ compiler g++. But, the code under "bfd/" and 
> "include/" etc. are still compiled by GCC.

Correct.  The gdb C++ conversion plan only covered the gdb/ subdirectory:

  https://sourceware.org/gdb/wiki/cxx-conversion

Note that even though the repo is shared, bfd/ is maintained by the binutils
project, not by gdb.

Also note that in git master, gdb/ requires a C++11 compiler.  It's no longer
possible to build that part with a C compiler.

> My question is that is it work in progress or do you never plan to compile the 
> bfd and other code with C++ support ? If yes, is there any specific reason for 
> the same ?

There's no plan on the binutils side, AFAIK, but I can't speak for binutils. 
I'm curious on why you ask, though.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]