diff options
author | Pedro Alves <palves@redhat.com> | 2018-05-03 00:37:07 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-05-03 00:37:07 +0100 |
commit | b5c8fcb1b40a61be5015b02e8cf456a56c258b5d (patch) | |
tree | e03ca76c9653aaf7e236e4f3efc74696124ff72d /gdb/i386-sol2-nat.c | |
parent | 77d3c63b0dc9d275a87d4ea2191ebd3830f6ca4a (diff) | |
download | gdb-b5c8fcb1b40a61be5015b02e8cf456a56c258b5d.zip gdb-b5c8fcb1b40a61be5015b02e8cf456a56c258b5d.tar.gz gdb-b5c8fcb1b40a61be5015b02e8cf456a56c258b5d.tar.bz2 |
Eliminate procfs.c:procfs_use_watchpoints
Now that procfs.c is only ever used by Solaris, and, both x86 and
SPARC Solaris support watchpoints (*), we don't need the separate
procfs_use_watchpoints function. Getting rid of it simplifies
C++ification of target_ops.
(*) and I assume that any other Solaris port would use the same kernel
debug API interfaces for watchpoints. Otherwise, we can worry about
it if it ever happens.
gdb/ChangeLog:
2018-05-02 Pedro Alves <palves@redhat.com>
* procfs.c (procfs_stopped_by_watchpoint)
(procfs_insert_watchpoint, procfs_remove_watchpoint)
(procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
Forward declare.
(procfs_use_watchpoints): Delete, move contents...
(procfs_target): ... here.
* procfs.h (procfs_use_watchpoints): Delete declaration.
* i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
procfs_use_watchpoints.
* sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
procfs_use_watchpoints.
Diffstat (limited to 'gdb/i386-sol2-nat.c')
-rw-r--r-- | gdb/i386-sol2-nat.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/i386-sol2-nat.c b/gdb/i386-sol2-nat.c index 679bb86..359fc32 100644 --- a/gdb/i386-sol2-nat.c +++ b/gdb/i386-sol2-nat.c @@ -138,8 +138,6 @@ _initialize_amd64_sol2_nat (void) /* Fill in the generic procfs methods. */ t = procfs_target (); - procfs_use_watchpoints (t); - #if defined (PR_MODEL_NATIVE) && (PR_MODEL_NATIVE == PR_MODEL_LP64) amd64_native_gregset32_reg_offset = amd64_sol2_gregset32_reg_offset; amd64_native_gregset32_num_regs = |