* GDB now builds as a C++ program by default
@ 2016-04-20 22:56 Pedro Alves
2016-04-21 7:53 ` Gary Benson
2016-05-24 11:43 ` Bob Rossi
0 siblings, 2 replies; 4+ messages in thread
From: Pedro Alves @ 2016-04-20 22:56 UTC (permalink / raw)
To: gdb
Hi all,
I'm happy to report that GDB git master now defaults to building with
a C++ compiler.
For the moment, we'll keep supporting building GDB as a C program
as well, so no C++-only code is allowed yet. You can request C mode by
configuring gdb with --enable-build-with-cxx=no.
Big thanks to everyone involved!
See the project page for more info:
https://sourceware.org/gdb/wiki/cxx-conversion
--
Pedro Alves
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GDB now builds as a C++ program by default
2016-04-20 22:56 GDB now builds as a C++ program by default Pedro Alves
@ 2016-04-21 7:53 ` Gary Benson
2016-05-24 11:43 ` Bob Rossi
1 sibling, 0 replies; 4+ messages in thread
From: Gary Benson @ 2016-04-21 7:53 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb
Pedro Alves wrote:
> I'm happy to report that GDB git master now defaults to building
> with a C++ compiler.
Amazing work!
Cheers,
Gary
--
http://gbenson.net/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GDB now builds as a C++ program by default
2016-04-20 22:56 GDB now builds as a C++ program by default Pedro Alves
2016-04-21 7:53 ` Gary Benson
@ 2016-05-24 11:43 ` Bob Rossi
2016-05-24 11:53 ` Pedro Alves
1 sibling, 1 reply; 4+ messages in thread
From: Bob Rossi @ 2016-05-24 11:43 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb
On Wed, Apr 20, 2016 at 11:55:47PM +0100, Pedro Alves wrote:
> I'm happy to report that GDB git master now defaults to building with
> a C++ compiler.
Do you have a time frame for when GDB will be required to use C++
to compile?
Looking at https://sourceware.org/gdb/wiki/cxx-conversion, I see
that you will require C++ 98 or 03. Will you enforce that when
compiling?
I ask because I work on CGDB, a GDB front end, and it's written in C so
that it can be compiled anywhere that GDB can. I'd like to transition
CGDB to C++ but only want to do so after GDB is and using the same C++
standard features.
Thanks,
Bob Rossi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GDB now builds as a C++ program by default
2016-05-24 11:43 ` Bob Rossi
@ 2016-05-24 11:53 ` Pedro Alves
0 siblings, 0 replies; 4+ messages in thread
From: Pedro Alves @ 2016-05-24 11:53 UTC (permalink / raw)
To: Bob Rossi; +Cc: gdb
On 05/24/2016 12:43 PM, Bob Rossi wrote:
> On Wed, Apr 20, 2016 at 11:55:47PM +0100, Pedro Alves wrote:
>> I'm happy to report that GDB git master now defaults to building with
>> a C++ compiler.
>
> Do you have a time frame for when GDB will be required to use C++
> to compile?
>
I'd like to do that soon after the next release, around June/July,
making the next release the last one that supports building gdb
with a C compiler.
> Looking at https://sourceware.org/gdb/wiki/cxx-conversion, I see
> that you will require C++ 98 or 03. Will you enforce that when
> compiling?
If you mean with a "-std=" switch, I don't plan to.
> I ask because I work on CGDB, a GDB front end, and it's written in C so
> that it can be compiled anywhere that GDB can. I'd like to transition
> CGDB to C++ but only want to do so after GDB is and using the same C++
> standard features.
Thanks,
Pedro Alves
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-24 11:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-20 22:56 GDB now builds as a C++ program by default Pedro Alves
2016-04-21 7:53 ` Gary Benson
2016-05-24 11:43 ` Bob Rossi
2016-05-24 11:53 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox