This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix -Wmissing-prototypes build: cris
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Orjan Friberg <orjanf at axis dot com>
- Date: Fri, 2 Mar 2012 01:04:37 +0100
- Subject: [commit] Fix -Wmissing-prototypes build: cris
Hi,
the mail
New port: CRISv32
http://sourceware.org/ml/gdb-patches/2005-01/msg00150.html
talks about
Resurrected file config/cris/tm-cris.h:
But this file has never been resurrected, target vector also has never been
set with them, therefore removed the functions as it breaks now the build.
It should be easy to revoke this commit if CRIS target maintainers want to
install them.
Regards,
Jan
http://sourceware.org/ml/gdb-cvs/2012-03/msg00046.html
--- src/gdb/ChangeLog 2012/03/01 23:58:47 1.13930
+++ src/gdb/ChangeLog 2012/03/02 00:01:24 1.13931
@@ -1,3 +1,9 @@
+2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
+ * cris-tdep.c (cris_can_use_hardware_watchpoint)
+ (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
+
2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix -Wmissing-prototypes build.
--- src/gdb/cris-tdep.c 2012/01/28 18:08:17 1.182
+++ src/gdb/cris-tdep.c 2012/03/02 00:01:24 1.183
@@ -477,48 +477,6 @@
return ret;
}
-/* Hardware watchpoint support. */
-
-/* We support 6 hardware data watchpoints, but cannot trigger on execute
- (any combination of read/write is fine). */
-
-int
-cris_can_use_hardware_watchpoint (int type, int count, int other)
-{
- struct gdbarch_tdep *tdep = gdbarch_tdep (target_gdbarch);
-
- /* No bookkeeping is done here; it is handled by the remote debug agent. */
-
- if (tdep->cris_version != 32)
- return 0;
- else
- /* CRISv32: Six data watchpoints, one for instructions. */
- return (((type == bp_read_watchpoint || type == bp_access_watchpoint
- || type == bp_hardware_watchpoint) && count <= 6)
- || (type == bp_hardware_breakpoint && count <= 1));
-}
-
-/* The CRISv32 hardware data watchpoints work by specifying ranges,
- which have no alignment or length restrictions. */
-
-int
-cris_region_ok_for_watchpoint (CORE_ADDR addr, int len)
-{
- return 1;
-}
-
-/* If the inferior has some watchpoint that triggered, return the
- address associated with that watchpoint. Otherwise, return
- zero. */
-
-CORE_ADDR
-cris_stopped_data_address (void)
-{
- CORE_ADDR eda;
- eda = get_frame_register_unsigned (get_current_frame (), EDA_REGNUM);
- return eda;
-}
-
/* The instruction environment needed to find single-step breakpoints. */
typedef