Patch for gdb5.0; enable hardware watchpoints on UnixWare
John Hughes
john@Calva.COM
Mon Oct 30 08:15:00 GMT 2000
> But all the i386v4-nat.c code has to be conditionalized on
> UNIXWARE (or better yet, moved to a new i386sco-nat.c file), as
> i386v4-nat.c is used by x86 Solaris as well, and Solaris uses page
> faulting instead of debug registers for watchpoints, and would not
> compile with your patches installed.
Aha. Here's a fixed version of the patch; the i386v4-nat.c changes
are conditional on UNIXWARE.
I didn't go as far as making a i386v42mp-nat.c file (I don't think
it should be called i386sco-nat.c, in a few months i386caldera-nat.c
would make about as much sense!). I'm too lazy. Sorry.
2000-10-30 John Hughes <john@CalvaEDI.COM>
* i386v4-nat.c (i386_insert_watchpoint, i386_remove_watchpoint,
i386_check_watch_resources, i386_stopped_by_watchpoint,
i386_insert_aligned_watchpoint, i386_insert_unaliged_watchpoint):
use i386 debug registers to implement hardware watchpoints on
UnixWare systems.
* procfs.c (proc_family) allow access to family specific
information (contains debug registers on UnixWare systems).
* procfs.c (proc_command) allow other modules to issue commands
to the procfs ctl file.
* config/i386/tm-i386v42mp.c (TARGET_HAS_HARDWARE_WATCHPOINTS,
TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT,
HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
target_insert_watchpoint, target_remove_watchpoint): define.
--
John Hughes <john@Calva.COM>,
CalvaEDI SA. Tel: +33-1-4313-3131
66 rue du Moulin de la Pointe, Fax: +33-1-4313-3139
75013 PARIS.
More information about the Gdb-patches
mailing list