+2016-01-12 Mike Frysinger <vapier@gentoo.org>
+
+ * ax.c (is_goto_target): Mark static.
+ * linux-low.c (register_addr): Likewise.
+ (linux_fetch_registers, linux_store_registers): Likewise.
+ * mem-break.c (any_persistent_commands): Fix old prototype.
+ (add_commands_to_breakpoint): Mark static.
+ * regcache.c (find_register_by_name): Delete unused func.
+ * remote-utils.c (hex_or_minus_one): Mark static.
+ * server.c (monitor_show_help): Mark static.
+ (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
+ handle_v_requests): Likewise.
+
2016-01-12 Pedro Alves <palves@redhat.com>
Remove use of the registered trademark symbol throughout.
/* Scan an agent expression for any evidence that the given PC is the
target of a jump bytecode in the expression. */
-int
+static int
is_goto_target (struct agent_expr *aexpr, int pc)
{
int i;
#ifdef HAVE_LINUX_USRREGS
-int
+static int
register_addr (const struct usrregs_info *usrregs, int regnum)
{
int addr;
#endif
-void
+static void
linux_fetch_registers (struct regcache *regcache, int regno)
{
int use_regsets;
}
}
-void
+static void
linux_store_registers (struct regcache *regcache, int regno)
{
int use_regsets;
}
int
-any_persistent_commands ()
+any_persistent_commands (void)
{
struct process_info *proc = current_process ();
struct breakpoint *bp;
/* Add commands COMMANDS to GDBserver's breakpoint BP. */
-void
+static void
add_commands_to_breakpoint (struct breakpoint *bp,
struct agent_expr *commands, int persist)
{
hex2bin (buf, registers, len / 2);
}
-struct reg *
-find_register_by_name (const struct target_desc *tdesc, const char *name)
-{
- int i;
-
- for (i = 0; i < tdesc->num_registers; i++)
- if (strcmp (name, tdesc->reg_defs[i].name) == 0)
- return &tdesc->reg_defs[i];
- internal_error (__FILE__, __LINE__, "Unknown register %s requested",
- name);
-}
-
int
find_regno (const struct target_desc *tdesc, const char *name)
{
return buf;
}
-ULONGEST
+static ULONGEST
hex_or_minus_one (char *buf, char **obuf)
{
ULONGEST ret;
return NULL;
}
-void
+static void
monitor_show_help (void)
{
monitor_output ("The following monitor commands are supported:\n");
/* Handle all of the extended 'q' packets. */
-void
+static void
handle_query (char *own_buf, int packet_len, int *new_packet_len_p)
{
static struct inferior_list_entry *thread_ptr;
}
/* Parse vCont packets. */
-void
+static void
handle_v_cont (char *own_buf)
{
char *p, *q;
}
/* Attach to a new program. Return 1 if successful, 0 if failure. */
-int
+static int
handle_v_attach (char *own_buf)
{
int pid;
}
/* Kill process. Return 1 if successful, 0 if failure. */
-int
+static int
handle_v_kill (char *own_buf)
{
int pid;
}
/* Handle all of the extended 'v' packets. */
-void
+static void
handle_v_requests (char *own_buf, int packet_len, int *new_packet_len)
{
if (!disable_packet_vCont)