This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix -Wmissing-prototypes build: frv
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 2 Mar 2012 01:00:16 +0100
- Subject: [commit] Fix -Wmissing-prototypes build: frv
Hi,
I have followed the mail
Re: Remote watchpoint support for FRV
http://sourceware.org/ml/gdb-patches/2007-10/msg00609.html
"Probably the submitter meant to finish up watchpoint support later.
At this stage, I agree with you that we should simply remove the file."
Therefore the functions were unused and therefore they have been removed.
Regards,
Jan
http://sourceware.org/ml/gdb-cvs/2012-03/msg00043.html
--- src/gdb/ChangeLog 2012/03/01 23:55:38 1.13929
+++ src/gdb/ChangeLog 2012/03/01 23:58:47 1.13930
@@ -1,6 +1,12 @@
2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix -Wmissing-prototypes build.
+ * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
+ (frv_have_stopped_data_address): Remove.
+
+2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
* Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
* sh-tdep.c: Include sh64-tdep.h.
* sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
--- src/gdb/frv-tdep.c 2012/01/04 08:17:02 1.135
+++ src/gdb/frv-tdep.c 2012/03/01 23:58:48 1.136
@@ -1377,72 +1377,6 @@
return RETURN_VALUE_REGISTER_CONVENTION;
}
-
-/* Hardware watchpoint / breakpoint support for the FR500
- and FR400. */
-
-int
-frv_check_watch_resources (struct gdbarch *gdbarch, int type, int cnt, int ot)
-{
- struct gdbarch_tdep *var = gdbarch_tdep (gdbarch);
-
- /* Watchpoints not supported on simulator. */
- if (strcmp (target_shortname, "sim") == 0)
- return 0;
-
- if (type == bp_hardware_breakpoint)
- {
- if (var->num_hw_breakpoints == 0)
- return 0;
- else if (cnt <= var->num_hw_breakpoints)
- return 1;
- }
- else
- {
- if (var->num_hw_watchpoints == 0)
- return 0;
- else if (ot)
- return -1;
- else if (cnt <= var->num_hw_watchpoints)
- return 1;
- }
- return -1;
-}
-
-
-int
-frv_stopped_data_address (CORE_ADDR *addr_p)
-{
- struct frame_info *frame = get_current_frame ();
- CORE_ADDR brr, dbar0, dbar1, dbar2, dbar3;
-
- brr = get_frame_register_unsigned (frame, brr_regnum);
- dbar0 = get_frame_register_unsigned (frame, dbar0_regnum);
- dbar1 = get_frame_register_unsigned (frame, dbar1_regnum);
- dbar2 = get_frame_register_unsigned (frame, dbar2_regnum);
- dbar3 = get_frame_register_unsigned (frame, dbar3_regnum);
-
- if (brr & (1<<11))
- *addr_p = dbar0;
- else if (brr & (1<<10))
- *addr_p = dbar1;
- else if (brr & (1<<9))
- *addr_p = dbar2;
- else if (brr & (1<<8))
- *addr_p = dbar3;
- else
- return 0;
-
- return 1;
-}
-
-int
-frv_have_stopped_data_address (void)
-{
- CORE_ADDR addr = 0;
- return frv_stopped_data_address (&addr);
-}
-
static CORE_ADDR
frv_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame)
{