This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Hardware breakpoints when using i386 simulator
- To: gdb at sourceware dot cygnus dot com
- Subject: Hardware breakpoints when using i386 simulator
- From: David Welch <david dot welch at st-edmund-hall dot oxford dot ac dot uk>
- Date: Sun, 9 Jul 2000 03:58:09 +0100 (BST)
Hi,
I'm using gdb 5.0 to debug an os kernel running on an i386 simulator
called bochs. The bochs remote stub supports hardware breakpoints but
instead of sending a request, gdb tries to set breakpoints as if the
program was running locally. I'd like to fix this, my initial idea was
that i386_insert_watchpoint should check if the current target is a remote
one and call remote_insert_watchpoint. Is this the right approach?
TIA,
David Welch