Re: Will therefore GDB utilize C++ or not?

Tom Tromey
2012-05-18T19:55:23Z

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> This is important, because we want gdbserver to be usable in #1,
Pedro> resource constrained scenarios where the C++ dependency would be
Pedro> unacceptable.

I wonder whether you would reconsider this given the size measurements I
did.

In particular, C++ is something like 3% space overhead today, and that
gdbserver is already ~300K. I think that size growth is quite
acceptable.

Pedro> We don't want there to need to be other gdbserver-like programs
Pedro> specialized for such environments, and gdbserver to be usable
Pedro> only on bigger machines. We want gdbserver to run everywhere.

The recent gdb-patches thread from Jonathan Larmour indicates that we
already lost this one. He was concerned about the use of 2183 bytes.

Pedro> And #2, the debugger is one of the first programs that is
Pedro> desirable to get running on a new system/board. Usually you get
Pedro> C going much sooner than C++.

I think there are multiple options for this scenario. People could
start with a basic port of RDA, or an older gdbserver, or just bump up
the priority of getting C++ working.

Tom