diff options
author | Pedro Alves <palves@redhat.com> | 2009-06-07 22:33:25 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-06-07 22:33:25 +0000 |
commit | d1a7880c7763c73413efe8dd1293d7874b7e0ddd (patch) | |
tree | 7edfabbac62352710dbd715f5711af15f1355d8b /gdb/sparc-sol2-nat.c | |
parent | 17592de300e28b9f2bdcd6d4d8002d8fcab70ccb (diff) | |
download | binutils-gdb-d1a7880c7763c73413efe8dd1293d7874b7e0ddd.tar.gz |
2009-06-07 Pedro Alves <pedro@codesourcery.com>
* procfs.h: New.
* proc-utils.h (procfs_first_available): Don't declare here.
* sol-thread.c: Include procfs.h instead of sys/procfs.h and
proc-utils.h.
* procfs.c: Include procfs.h.
(procfs_target): Make it public. Don't register
procfs_can_use_hw_breakpoint here.
(proc_set_watchpoint): Check for PCWATCH or PIOCSWATCH being
defined instead of TARGET_HAS_HARDWARE_WATCHPOINTS.
(procfs_can_use_hw_breakpoint): Remove check of
TARGET_HAS_HARDWARE_WATCHPOINTS.
(procfs_use_watchpoints): Register procfs_can_use_hw_breakpoint
here.
(_initialize_procfs): Don't add the procfs target here.
* i386-sol2-nat.c: Include target.h and procfs.h.
(_initialize_amd64_sol2_nat): Install the procfs target here,
customized with watchpoints support.
* irix5-nat.c: Include target.h.
(_initialize_core_irix5): Rename to ...
(_initialize_irix5_nat): ... this. Install the procfs target
here, customized with watchpoints support.
* alpha-nat.c: Include procfs.h.
(_initialize_core_alpha): Rename to...
(_initialize_alpha_nat): ... this. Install the procfs target
here, customized with watchpoints support.
* sparc-sol2-nat.c: Include target.h and procfs.h.
(_initialize_sparc_sol2_nat): New.
* config/i386/nm-i386sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
* config/sparc/nm-sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
* config/mips/irix5.mh (NAT_FILE): Delete.
* config/mips/irix6.mh (NAT_FILE): Delete.
* config/mips/nm-irix5.h: Delete.
2009-06-07 Pedro Alves <pedro@codesourcery.com>
* gdbint.texinfo (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete all
references.
Diffstat (limited to 'gdb/sparc-sol2-nat.c')
-rw-r--r-- | gdb/sparc-sol2-nat.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/sparc-sol2-nat.c b/gdb/sparc-sol2-nat.c index 3854fd920c4..e14af594849 100644 --- a/gdb/sparc-sol2-nat.c +++ b/gdb/sparc-sol2-nat.c @@ -24,6 +24,8 @@ #include "gregset.h" #include "sparc-tdep.h" +#include "target.h" +#include "procfs.h" /* This file provids the (temporary) glue between the Solaris SPARC target dependent code and the machine independent SVR4 /proc @@ -94,3 +96,18 @@ fill_fpregset (const struct regcache *regcache, prfpregset_t *fpregs, int regnum { sparc_collect_fpregset (regcache, regnum, fpregs); } + +/* Provide a prototype to silence -Wmissing-prototypes. */ +extern initialize_file_ftype _initialize_sparc_sol2_nat; + +void +_initialize_sparc_sol2_nat (void) +{ + struct target_ops *t; + + t = procfs_target (); +#ifdef NEW_PROC_API /* Solaris 6 and above can do HW watchpoints */ + procfs_use_watchpoints (t); +#endif + add_target (t); +} |