This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Hardware Breakpoints
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Peter Jansen <peter at klaxoniqa dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Sun, 17 Mar 2002 20:09:45 -0500
- Subject: Re: Hardware Breakpoints
- References: <3C953BAE.897F8105@klaxoniqa.com>
> 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.