This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH/python] notify memory changed.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 19 Jun 2012 08:13:44 -0700
- Subject: Re: [PATCH/python] notify memory changed.
- References: <1340075728-24870-1-git-send-email-yao@codesourcery.com>
> 2012-06-18 Yao Qi <yao@codesourcery.com>
>
> * python/py-inferior.c (infpy_write_memory): Invoke
> observer_notify_memory_changed.
Just wondering if it shouldn't be write_memory itself that should
call observer_notify_memory_changed?
> ---
> gdb/python/py-inferior.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c
> index efbf14b..bdd39b2 100644
> --- a/gdb/python/py-inferior.c
> +++ b/gdb/python/py-inferior.c
> @@ -494,6 +494,7 @@ infpy_write_memory (PyObject *self, PyObject *args, PyObject *kw)
> break;
> }
> write_memory (addr, buffer, length);
> + observer_notify_memory_changed (addr, length, buffer);
> }
> GDB_PY_HANDLE_EXCEPTION (except);
>
> --
> 1.7.0.4
--
Joel