diff options
author | Martin Hunt <hunt@redhat.com> | 1999-01-29 09:46:03 +0000 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 1999-01-29 09:46:03 +0000 |
commit | 6925baeaa6402a694a73802aa96d790396ca021e (patch) | |
tree | a0b801803da3bd12ddf97312015ac51591ee9195 | |
parent | 6aba57bef263f5e46997358da0f884e60db239ce (diff) | |
download | gdb-6925baeaa6402a694a73802aa96d790396ca021e.zip gdb-6925baeaa6402a694a73802aa96d790396ca021e.tar.gz gdb-6925baeaa6402a694a73802aa96d790396ca021e.tar.bz2 |
1999-01-29 Martin Hunt <hunt@cygnus.com>
Changes from Keith Seitz <keiths@cygnus.com>
* valops.c (value_assign): Add calls to register_changed_hook and
memory_changed_hook to inform UIs that the user has changed
the target's registers/memory.
* findvar.c (write_register_gen): Remove call to pc_changed_hook.
* defs.h: Remove declaration for pc_changed_hook and
add declarations for register_changed_hook and
memory_changed_hook.
* top.c: Ditto.
-rw-r--r-- | gdb/ChangeLog | 12 | ||||
-rw-r--r-- | gdb/top.c | 9 |
2 files changed, 19 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 667b24b..c8fe188 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +1999-01-29 Martin Hunt <hunt@cygnus.com> + Changes from Keith Seitz <keiths@cygnus.com> + + * valops.c (value_assign): Add calls to register_changed_hook and + memory_changed_hook to inform UIs that the user has changed + the target's registers/memory. + * findvar.c (write_register_gen): Remove call to pc_changed_hook. + * defs.h: Remove declaration for pc_changed_hook and + add declarations for register_changed_hook and + memory_changed_hook. + * top.c: Ditto. + Thu Jan 28 18:16:07 1999 Mark Alexander <marka@cygnus.com> * procfs.c (wait_fd): Handle deleted threads correctly. @@ -434,8 +434,13 @@ void (*interactive_hook) PARAMS ((void)); void (*registers_changed_hook) PARAMS ((void)); -/* tell the GUI someone changed the PC */ -void (*pc_changed_hook) PARAMS ((void)); +/* Tell the GUI someone changed the register REGNO. -1 means + that the caller does not know which register changed or + that several registers have changed (see value_assign).*/ +void (*register_changed_hook) PARAMS ((int regno)); + +/* Tell the GUI someone changed LEN bytes of memory at ADDR */ +void (*memory_changed_hook) PARAMS ((CORE_ADDR addr, int len)); /* Called when going to wait for the target. Usually allows the GUI to run while waiting for target events. */ |