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: [RFC] checking the Z-packet support on gdbserver


On Fri, Sep 14, 2007 at 06:39:13PM +0900, Emi SUZUKI wrote:
> Meanwhile, I've found the definition below in gdb/config/nm-i386.h.  
> 
>   #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
> 
> TARGET_CAN_USE_HARDWARE_WATCHPOINT is used in watch_command_1 for
> checking if the support of hardware watchpoints are available on the
> target.  If it is not defined, the target vector function
> 'to_can_use_hw_breakpoint' would be called.  So, the above implies
> that GDB built for the x86 native target is not supposed to debug the
> remote target.  But it should be, to debug a target running on a
> remote machine which is the same architecture to the local host,
> shouldn't it?
> (Although it would not be much necessary in practice...)

Yes, this is a bug.  It's a little tricky to fix because there's a
variety of different i386 targets sharing that header file, but it's
certainly fixable.

-- 
Daniel Jacobowitz
CodeSourcery


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