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]

[patch] Remove some HPUX warnings


Warning removal on hppa2.0-hp-hpux10.20 (based on 0803 sources).
gdb/hppah-nat.c: At top level:
gdb/hppah-nat.c:620: conflicting types for `hppa_remove_hw_watchpoint'
gdb/hppah-nat.c:626: conflicting types for `hppa_can_use_hw_watchpoint'

I thought that the infttrace.c patch also removed warnings on hpux11.00
too, but can't now see evidence of it.

2001-08-31  Rodney Brown  <rbrown64@csc.com.au>

     * hppa-nat.c(hppa_remove_hw_watchpoint, hppa_can_use_hw_watchpoint):
     Warning removal.
     * infttrace.c(hppa_remove_hw_watchpoint, hppa_can_use_hw_watchpoint):
     Standardize.

--- gdb/hppah-nat.c.orig Fri May  4 14:15:25 2001
+++ gdb/hppah-nat.c Mon Aug 13 19:44:26 2001
@@ -615,14 +615,13 @@ hppa_insert_hw_watchpoint (int pid, CORE
 }

 int
-hppa_remove_hw_watchpoint (int pid, CORE_ADDR start, LONGEST len,
-                 enum bptype type)
+hppa_remove_hw_watchpoint (int pid, CORE_ADDR start, LONGEST len, int type)
 {
   error ("Hardware watchpoints not implemented on this platform.");
 }

 int
-hppa_can_use_hw_watchpoint (enum bptype type, int cnt, enum bptype ot)
+hppa_can_use_hw_watchpoint (int type, int cnt, int ot)
 {
   return 0;
 }
--- gdb/tmp/infttrace.c  Fri Aug 31 17:56:07 2001
+++ gdb/infttrace.c Tue Aug 14 19:30:59 2001
@@ -5495,8 +5495,7 @@ hppa_insert_hw_watchpoint (int pid, CORE
    watchpoints.
  */
 int
-hppa_remove_hw_watchpoint (int pid, CORE_ADDR start, LONGEST len,
-                 enum bptype type)
+hppa_remove_hw_watchpoint (int pid, CORE_ADDR start, LONGEST len, int type)
 {
   CORE_ADDR page_start;
   int dictionary_is_empty;
@@ -5556,7 +5555,7 @@ hppa_remove_hw_watchpoint (int pid, CORE
    hardware support.
  */
 int
-hppa_can_use_hw_watchpoint (enum bptype type, int cnt, enum bptype ot)
+hppa_can_use_hw_watchpoint (int type, int cnt, int ot)
 {
   return (type == bp_hardware_watchpoint);
 }


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