aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-10-17 00:53:24 +0000
committerYao Qi <yao@codesourcery.com>2012-10-17 00:53:24 +0000
commit8de0566d7a01e024fa43e7e1bde309c718856695 (patch)
tree15e8946c06a60231b27f2ba37926c8ce64b01dfe /gdb/doc
parentb1fecbf125225e49517549d561fe5f480ee5055f (diff)
downloadgdb-8de0566d7a01e024fa43e7e1bde309c718856695.zip
gdb-8de0566d7a01e024fa43e7e1bde309c718856695.tar.gz
gdb-8de0566d7a01e024fa43e7e1bde309c718856695.tar.bz2
gdb:
* breakpoint.c (invalidate_bp_value_on_memory_change): Add one more parameter 'inferior'. * corefile.c (write_memory_with_notification): Caller update. * mi/mi-cmd-var.c: Include "mi-main.h". (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory to 1 and restore it later. * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory" and "data-write-memory-bytes. * mi/mi-interp.c: Include objfiles.h. (mi_interpreter_init): Call observer_attach_memory_changed. (mi_memory_changed): New. * mi/mi-main.h (struct mi_suppress_notification) <memory>: New field. * NEWS: Mention new MI notification "memory-changed". gdb/doc: * observer.texi (GDB Observers): Update observer 'memory_changed'. * gdb.texinfo (GDB/MI Async Records): Document for "memory-changed" notification. gdb/testsuite: * gdb.mi/mi-memory-changed.exp: New.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog7
-rw-r--r--gdb/doc/gdb.texinfo7
-rw-r--r--gdb/doc/observer.texi4
3 files changed, 16 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index c33445a..2e726e5 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,10 @@
+2012-10-17 Yao Qi <yao@codesourcery.com>
+
+ * observer.texi (GDB Observers): Update observer
+ 'memory_changed'.
+ * gdb.texinfo (GDB/MI Async Records): Document for
+ "memory-changed" notification.
+
2012-10-15 Doug Evans <dje@google.com>
* gdb.texinfo (Mode Options): Document -nh.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index aed2556..0c7aa1c 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -27697,6 +27697,13 @@ changed to @var{value}. In the multi-word @code{set} command,
the @var{param} is the whole parameter list to @code{set} command.
For example, In command @code{set check type on}, @var{param}
is @code{check type} and @var{value} is @code{on}.
+
+@item =memory-changed,thread-group=@var{id},addr=@var{addr},len=@var{len}[,type="code"]
+Reports that bytes from @var{addr} to @var{data} + @var{len} were
+written in an inferior. The @var{id} is the identifier of the
+thread group corresponding to the affected inferior. The optional
+@code{type="code"} part is reported if the memory written to holds
+executable code.
@end table
@node GDB/MI Frame Information
diff --git a/gdb/doc/observer.texi b/gdb/doc/observer.texi
index 3fdc90a..106475b 100644
--- a/gdb/doc/observer.texi
+++ b/gdb/doc/observer.texi
@@ -230,9 +230,9 @@ The inferior @var{inf} has been removed from the list of inferiors.
This method is called immediately before freeing @var{inf}.
@end deftypefun
-@deftypefun void memory_changed (CORE_ADDR @var{addr}, ssize_t @var{len}, const bfd_byte *@var{data})
+@deftypefun void memory_changed (struct inferior *@var{inferior}, CORE_ADDR @var{addr}, ssize_t @var{len}, const bfd_byte *@var{data})
Bytes from @var{data} to @var{data} + @var{len} have been written
-to the current inferior at @var{addr}.
+to the @var{inferior} at @var{addr}.
@end deftypefun
@deftypefun void before_prompt (const char *@var{current_prompt})