Re: Using C++ code inside gdb

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 09 Oct 2015 10:41, Pedro Alves wrote:
> On 10/09/2015 07:08 AM, Ashutosh wrote:
> > Regarding using C++, I just hit upon the following conversation on the
> > gdb-patches list:
> > https://sourceware.org/ml/gdb-patches/2015-02/msg00202.html
> > 
> > where it seems that there's some work going on compiling gdb sources
> > with g++. Any idea if this support is available in some form already
> > in gdb 7.10 or when is it planned to be released?
> 
> The status in the wiki page linked from that url is accurate.
> 
> GDB nowadays builds and links in C++ when configured
> with --enable-build-with-cxx, though that still spews a ton of warnings.
> There's been constant incremental progress so we'll get there eventually.
> 
> No release has been marked as the one where we'll switch to C++ as
> default language -- it'll get done when it's done; though the sooner
> the better.  :-)

even if the C++ frontend is used, and C++ is the default language, that doesn't
mean that all C++ functionality will be accepted.  there are a lot of design
patterns and C++ APIs that are generally bad, and gdb is meant to be portable.
so i'd expect there will be guidelines put together as to acceptable standards
base (C11/C14/etc...) as well as headers and interfaces that are permitted and
ones that are banned.

saying "it's C++ now!" is pretty vague ;).
-mike
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIbBAEBCAAGBQJWGYPRAAoJEEFjO5/oN/WBSgsP+Mvqkja68QgMMZUEpPSMaYUh
P2Q3Fz+y6ixARddTZEkPKWCq4c0wRt85hCtcp+NEWvcdp42vx23eHrdPM6XaK+LA
glqFTJzAlbq27vQrMsEhTF/gY8+voHezx+vC8RDk/7S66OHcSpXXr4nYZJUnf3QT
61i/1bNJkmu247at62WtcskDmV1D/K7BchmD5d8Kckd+Ti8XO/5EihIwMSN409UQ
CDOpxEeHayTRtx0JBfY6TvabgH8Mo2NH0xbmS+xevxYdVtuMnY9SlaVBPOi8KRu4
qwDNQc3/1NUshrHFYB2DSjLp2gZMGp/9CQMeD3d1diOSt69pGjblto/rs+XFrX0h
LfX0geyLnmzRdJqtUoLf3bF6T+urBvWD3QKpLtJhmI1jJKqF47GNqAQT30kt65+f
i79aruYeMqCwIILR8h8B26ASgrOiIkmilLNK9yT9ZST0wSdrE8rj+d4rtz6kakoZ
1FR0DRiPFgMqIQwXU/zNBFTi2IBzigVxZWsmVTUUiWiNI7wPIY2icJH4U91Da7QO
d915yeKxrJeCg9jgMPLPQEQqunnr9EkMOO1vW43eavKyX01FoWkP92iTgVYcJxWl
G9QLtTqnHK5cwXHFaX8yn40hks3D8jgPMzzHACPtcM/FKAPEtsG9KPMHrTrHcJtb
sClUx/hP+d38S2Qggw4=
=F3yu
-----END PGP SIGNATURE-----
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.