This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Watchpoint enhancement for S/390


Hello,

this patch improves hardware watchpoint handling on s390
a bit: by default, gdb only allows hw watchpoints on regions
of size less than the word size; on s390 we have no such 
restriction, so we can allow arbitrary regions.

Tested on s390-ibm-linux and s390x-ibm-linux.

(I hope this is small enough so that no specific copyright
assignment is required ...)

Bye,
Ulrich

ChangeLog:

	* config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define.


diff -c -p -r gdb-head-new/gdb/config/s390/nm-linux.h gdb-head/gdb/config/s390/nm-linux.h
*** gdb-head-new/gdb/config/s390/nm-linux.h	Sun Jan 18 17:50:21 2004
--- gdb-head/gdb/config/s390/nm-linux.h	Mon Jan 26 15:59:20 2004
*************** extern int s390_remove_watchpoint (CORE_
*** 47,52 ****
--- 47,53 ----
  
  #define TARGET_HAS_HARDWARE_WATCHPOINTS
  #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
+ #define TARGET_REGION_OK_FOR_HW_WATCHPOINT(addr, len) 1
  #define HAVE_CONTINUABLE_WATCHPOINT 1
  
  #define STOPPED_BY_WATCHPOINT(w) \
-- 
  Dr. Ulrich Weigand
  weigand@informatik.uni-erlangen.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]