This is the mail archive of the gdb@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: Sharing target code between gdb and gdbserver.


On Sat, Aug 30, 2008 at 10:04:46PM -0700, David Daney wrote:
> My (perhaps naive) thought is that I could just reuse the same
> watchpoint functions I am adding to gdb's target vector for gdbserver.
> Would this be possible or advisable?  Why doesn't i386 do this?

The utility and target functions in gdbserver are not the same as the
ones in GDB.  So you'd have to write code with a pretty small,
nebulously defined subset of them... it's a bit tricky.  It's much
simpler to have a second copy.

-- 
Daniel Jacobowitz
CodeSourcery


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