This is the mail archive of the gdb-patches@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]

Re: duplicated code in gdb and gdbserver


Hi, Doug -

dje wrote:
> [...]
> Still, in the end it seems more complicated than having gdb link in
> the same library that gdbserver does.
> And with such a library, I'd make it so that "non-gdb tools" could
> use it too.

That's true.

> For example, it would make easier the building of gdbservers that
> need to speak something other than the remote protocol.

I guess it depends on how many new abstractions one wishes to invent.
The remote protocol is well-proven, so experimental design is not
needed.  New protocols may have associated state machines that are
sufficiently close to the remote protocol that one can bridge to them
easily, or sufficiently far that gdb infrun/core changes would be
needed.  It depends.  Until one comes along though, I would propose
going with what we know.

- FChE


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