This is the mail archive of the gdb@sources.redhat.com 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: Hardware Breakpoints


> Hi,
> 
> I'm trying to use hardware breakpoints in gdb (in the new
> gdbarchitecture stuff) and cannot figure out how it all works. Are their
> any gdbarch things for hardware breakpoints and watchpoints?
> 
> Are there any targets that use hardware breakpoints and watchpoints in
> the new gdbarch stuff?

No.  But there is a reason.

The existing h/w breakpoint macros should be moved to the target vector 
and not the architecture vector.  This is because the target, and not 
the architecture, determines the presence of a breakpoint mechanism.

Unfortunatly, so far, no one has made this change, sigh!

Interested?

Andrew

--

e.g., a sim target might support h/w breakpoints when the architecture 
doesn't have the, a native target may not support h/w breakpoints even 
when the architecture does have them.


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