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: adjust watchpoint testing


On Tue, 13 Jun 2006, Nathan Sidwell wrote:

> Wu Zhou wrote:
> > Nathan,
> > 
> > I see your code have such two lines:
> > 
> > +     if [target_info exists gdb,hardware_watchpoints] {
> > +       set nwatch [target_info gdb,hardware_watchpoints]
> > 
> > Where is this target_info variable set up?  Did you set that somewhere in
> > the dejagnu package?  I am very curious about how it is implemented.
> 
> you need to add a line to the dejagnu board support file to initialize it.  In
> just the same way as things like gdb,nosignals is set.

Do you mean to hard-wire the number of the hw watchpoint the underlying target
support into these base board files, or just set the number to 1?

I guess that we might need to work out a way to detect the number 
automatically. Any thought?

Regards
- Wu Zhou


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