This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
RFA: gdbint.texinfo additions
- To: Stan Shebs <shebs at cygnus dot com>
- Subject: RFA: gdbint.texinfo additions
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Wed, 13 Oct 1999 19:32:36 -0700
- Cc: gdb-patches at sourceware dot cygnus dot com
Stan,
Here's the documentation for the new gdbarch methods that I added for
inserting and removing breakpoints.
Kevin
* gdbint.texinfo (MEMORY_INSERT_BREAKPOINT,
MEMORY_REMOVE_BREAKPOINT): Document.
diff -u -r1.138 gdbint.texinfo
--- gdbint.texinfo 1999/10/12 00:20:47 1.138
+++ gdbint.texinfo 1999/10/14 01:29:37
@@ -1239,6 +1239,23 @@
Replaces all the other @var{BREAKPOINT} macros.
+@item MEMORY_INSERT_BREAKPOINT (addr, contents_cache)
+@item MEMORY_REMOVE_BREAKPOINT (addr, contents_cache)
+
+Insert or remove memory based breakpoints. Reasonable defaults
+(@code{default_memory_insert_breakpoint} and
+@code{default_memory_remove_breakpoint} respectively) have been
+provided so that it is not necessary to define these for most
+architectures. Architectures which may want to define
+@var{MEMORY_INSERT_BREAKPOINT} and @var{MEMORY_REMOVE_BREAKPOINT} will
+likely have instructions that are oddly sized or are not stored in a
+conventional manner.
+
+It may also be desirable (from an efficiency standpoint) to define
+custom breakpoint insertion and removal routines if
+@var{BREAKPOINT_FROM_PC} needs to read the target's memory for some
+reason.
+
@item CALL_DUMMY_P
A C expresson that is non-zero when the target suports inferior function
calls.