diff options
author | Orjan Friberg <orjanf@axis.com> | 2005-05-12 12:14:23 +0000 |
---|---|---|
committer | Orjan Friberg <orjanf@axis.com> | 2005-05-12 12:14:23 +0000 |
commit | e013ee27c925f173a7e402fce26a2c75f78f9f40 (patch) | |
tree | b4791156d9d0694fda9746c7c550ba420ebcc427 /gdb/gdbserver/linux-low.h | |
parent | 119b882a3d5bbb167438b2020cbadd17ba4a9202 (diff) | |
download | gdb-e013ee27c925f173a7e402fce26a2c75f78f9f40.zip gdb-e013ee27c925f173a7e402fce26a2c75f78f9f40.tar.gz gdb-e013ee27c925f173a7e402fce26a2c75f78f9f40.tar.bz2 |
2005-05-12 Orjan Friberg <orjanf@axis.com>
* target.h (struct target_ops): Add insert_watchpoint,
remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
pointers for hardware watchpoint support.
* linux-low.h (struct linux_target_ops): Ditto.
* linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
(linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
to linux_target_ops.
* remote-utils.c (prepare_resume_reply): Add watchpoint information to
reply packet.
* server.c (main): Recognize 'Z' and 'z' packets.
Diffstat (limited to 'gdb/gdbserver/linux-low.h')
-rw-r--r-- | gdb/gdbserver/linux-low.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h index 5e41c48..9c35513 100644 --- a/gdb/gdbserver/linux-low.h +++ b/gdb/gdbserver/linux-low.h @@ -57,6 +57,13 @@ struct linux_target_ops int decr_pc_after_break; int (*breakpoint_at) (CORE_ADDR pc); + + /* Watchpoint related functions. See target.h for comments. */ + int (*insert_watchpoint) (char type, CORE_ADDR addr, int len); + int (*remove_watchpoint) (char type, CORE_ADDR addr, int len); + int (*stopped_by_watchpoint) (void); + CORE_ADDR (*stopped_data_address) (void); + }; extern struct linux_target_ops the_low_target; |