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: [patch] Remove HAVE_UINTPTR_T from gdb_thread_db.h


> Thiago> I'm not familiar with gdbserver but would it make sense to make
> Thiago> gdbserver internally use the target_ops vector? That would make GDB's
> Thiago> -nat.c files usable without modification in gdbserver. Then it would be
> Thiago> a matter of porting the gdbserver's additional features which GDB native
> Thiago> doesn't have.
> 
> The idea makes sense; I think it is among those discussed in previous
> threads on this topic.
> 
> The devil is in the details.  The *-nat.c files are free to use any
> other facility provided by gdb.  So, perhaps this approach would bloat
> gdbserver excessively.

I think that the target_ops vector does a lot more than what gdbserver
needs to do. So they way I have been thinking about it, in conceptual
terms, is to incorporate the gdbserver's target vector into GDB's
target vector.  In practice, it's probably going to be something
different, but I see the future as gdbserver being a module inside
GDB. and the GDBserver executable can be that module with the extra
remore-protocol implementation on top of that.

-- 
Joel


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