2012-03-01 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Thu, 1 Mar 2012 21:14:00 +0000 (21:14 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 1 Mar 2012 21:14:00 +0000 (21:14 +0000)
* amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
* breakpoint.c (create_exception_master_breakpoint, trace_command)
(ftrace_command, strace_command): Make static.
* d-lang.c (_initialize_d_language): Declare.
* dwarf2expr.c (_initialize_dwarf2expr): Declare.
* dwarf2loc.c (_initialize_dwarf2loc):
* dwarf2read.c (process_psymtab_comp_unit): Make static.
* exec.c (exec_get_section_table): Make static.
* i386-linux-tdep.c (i386_linux_record_signal): Make static.
* infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
* inferior.c (remove_inferior_command, add_inferior_command)
(clone_inferior_command): Make static.
* linux-nat.c (linux_nat_thread_address_space)
(linux_nat_core_of_thread): Make static.
* linux-tdep.c (_initialize_linux_tdep): Declare.
* objc-lang.c (_initialize_objc_lang): Declare.
* opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
Make static.
(_initialize_opencl_language): Declare.
* record.c (_initialize_record): Declare.
* remote.c (demand_private_info, remote_get_tib_address)
(remote_supports_cond_tracepoints)
(remote_supports_fast_tracepoints, remote_get_tracepoint_status):
Make static.
* skip.c (_initialize_step_skip): Declare.
* symtab.c (skip_prologue_using_lineinfo): Make static.
* tracepoint.c (delete_trace_state_variable)
(trace_variable_command, delete_trace_variable_command)
(get_uploaded_tsv, find_matching_tracepoint_location)
(find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
Make static.
* value.c (pack_unsigned_long): Make static.
* varobj.c (varobj_ensure_python_env): Make static.
* windows-tdep.c (_initialize_windows_tdep): Declare.
* xml-syscall.c (make_cleanup_free_syscalls_info): Make static.

24 files changed:
gdb/ChangeLog
gdb/amd64-linux-tdep.c
gdb/breakpoint.c
gdb/d-lang.c
gdb/dwarf2expr.c
gdb/dwarf2loc.c
gdb/dwarf2read.c
gdb/exec.c
gdb/i386-linux-tdep.c
gdb/infcmd.c
gdb/inferior.c
gdb/linux-nat.c
gdb/linux-tdep.c
gdb/objc-lang.c
gdb/opencl-lang.c
gdb/record.c
gdb/remote.c
gdb/skip.c
gdb/symtab.c
gdb/tracepoint.c
gdb/value.c
gdb/varobj.c
gdb/windows-tdep.c
gdb/xml-syscall.c

index 6750fb36d4da4d98bf6786f946f21e97c2b9af2d..81c5c9a346eb90e98e5a8a7e8fda205ba8028a3f 100644 (file)
@@ -1,3 +1,41 @@
+2012-03-01  Pedro Alves  <palves@redhat.com>
+
+       * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
+       * breakpoint.c (create_exception_master_breakpoint, trace_command)
+       (ftrace_command, strace_command): Make static.
+       * d-lang.c (_initialize_d_language): Declare.
+       * dwarf2expr.c (_initialize_dwarf2expr): Declare.
+       * dwarf2loc.c (_initialize_dwarf2loc):
+       * dwarf2read.c (process_psymtab_comp_unit): Make static.
+       * exec.c (exec_get_section_table): Make static.
+       * i386-linux-tdep.c (i386_linux_record_signal): Make static.
+       * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
+       * inferior.c (remove_inferior_command, add_inferior_command)
+       (clone_inferior_command): Make static.
+       * linux-nat.c (linux_nat_thread_address_space)
+       (linux_nat_core_of_thread): Make static.
+       * linux-tdep.c (_initialize_linux_tdep): Declare.
+       * objc-lang.c (_initialize_objc_lang): Declare.
+       * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
+       Make static.
+       (_initialize_opencl_language): Declare.
+       * record.c (_initialize_record): Declare.
+       * remote.c (demand_private_info, remote_get_tib_address)
+       (remote_supports_cond_tracepoints)
+       (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
+       Make static.
+       * skip.c (_initialize_step_skip): Declare.
+       * symtab.c (skip_prologue_using_lineinfo): Make static.
+       * tracepoint.c (delete_trace_state_variable)
+       (trace_variable_command, delete_trace_variable_command)
+       (get_uploaded_tsv, find_matching_tracepoint_location)
+       (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
+       Make static.
+       * value.c (pack_unsigned_long): Make static.
+       * varobj.c (varobj_ensure_python_env): Make static.
+       * windows-tdep.c (_initialize_windows_tdep): Declare.
+       * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
+
 2012-03-01  Pedro Alves  <palves@redhat.com>
 
        * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
index 5032371724c1a8a342c338e239f987a2ac57898a..da22c1c45b9f4a0bd46bbe088ae42619bc7aef84 100644 (file)
@@ -1225,7 +1225,7 @@ amd64_linux_syscall_record (struct regcache *regcache)
 #define AMD64_LINUX_xstate     512
 #define AMD64_LINUX_frame_size 560
 
-int
+static int
 amd64_linux_record_signal (struct gdbarch *gdbarch,
                            struct regcache *regcache,
                            enum target_signal signal)
index 311c4510197b7f08d95eccb0f1f7be7e9b7dd30d..ce35da29edc8312aad4a62e00df714475e2e42b1 100644 (file)
@@ -2922,7 +2922,7 @@ create_std_terminate_master_breakpoint (void)
 
 /* Install a master breakpoint on the unwinder's debug hook.  */
 
-void
+static void
 create_exception_master_breakpoint (void)
 {
   struct objfile *objfile;
@@ -14096,7 +14096,7 @@ set_tracepoint_count (int num)
   set_internalvar_integer (lookup_internalvar ("tpnum"), num);
 }
 
-void
+static void
 trace_command (char *arg, int from_tty)
 {
   if (create_breakpoint (get_current_arch (),
@@ -14113,7 +14113,7 @@ trace_command (char *arg, int from_tty)
     set_tracepoint_count (breakpoint_count);
 }
 
-void
+static void
 ftrace_command (char *arg, int from_tty)
 {
   if (create_breakpoint (get_current_arch (),
@@ -14132,7 +14132,7 @@ ftrace_command (char *arg, int from_tty)
 
 /* strace command implementation.  Creates a static tracepoint.  */
 
-void
+static void
 strace_command (char *arg, int from_tty)
 {
   struct breakpoint_ops *ops;
index 80504b4b94bdd84dd54b0b6a3d7143ffae3b3027..202820ef2d42910e2c7bf7aebeb842b25f7d9dcd 100644 (file)
@@ -277,6 +277,9 @@ static const struct language_defn d_language_defn =
   LANG_MAGIC
 };
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern initialize_file_ftype _initialize_d_language;
+
 void
 _initialize_d_language (void)
 {
index 222fcc302bbf25ee429efe5584c68f4bcd5f212f..67572046f072581a9827853934aa5ea7ae1dc75d 100644 (file)
@@ -1531,6 +1531,9 @@ ctx_no_push_dwarf_reg_entry_value (struct dwarf_expr_context *ctx,
                  _("Support for DW_OP_GNU_entry_value is unimplemented"));
 }
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern initialize_file_ftype _initialize_dwarf2expr;
+
 void
 _initialize_dwarf2expr (void)
 {
index 313df7b490b04b36a84874a43ca0237432fad90d..ebd34529abdd7f0516431eae999abc73dcf11a04 100644 (file)
@@ -3906,6 +3906,9 @@ const struct symbol_computed_ops dwarf2_loclist_funcs = {
   loclist_tracepoint_var_ref
 };
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern initialize_file_ftype _initialize_dwarf2loc;
+
 void
 _initialize_dwarf2loc (void)
 {
index 5810c31f1b361a664d51f99ba98ac08d9c50a11d..7296a4e432b68c684e9327e42ce2d1e96cf96aab 100644 (file)
@@ -3387,7 +3387,7 @@ dwarf2_find_base_address (struct die_info *die, struct dwarf2_cu *cu)
    SECTION is the section the CU/TU comes from,
    either .debug_info or .debug_types.  */
 
-void
+static void
 process_psymtab_comp_unit (struct dwarf2_per_cu_data *this_cu,
                           struct dwarf2_section_info *section,
                           int is_debug_types_section)
index 8a3e79763bf219be94a68fa962ac258f7e3d026f..58fb55e2bf7ae1546f0051e64d892fb8370008d3 100644 (file)
@@ -667,7 +667,7 @@ section_table_xfer_memory_partial (gdb_byte *readbuf, const gdb_byte *writebuf,
   return 0;                    /* We can't help.  */
 }
 
-struct target_section_table *
+static struct target_section_table *
 exec_get_section_table (struct target_ops *ops)
 {
   return current_target_sections;
index bfb0e1c70718681bee8800e81d2ecfc0d970eb41..4ea596cd7ca64b7566b91774526ce3e7334cc2a0 100644 (file)
@@ -459,7 +459,7 @@ i386_linux_intx80_sysenter_syscall_record (struct regcache *regcache)
 #define I386_LINUX_xstate      270
 #define I386_LINUX_frame_size  732
 
-int
+static int
 i386_linux_record_signal (struct gdbarch *gdbarch,
                           struct regcache *regcache,
                           enum target_signal signal)
index 06def78e80c640dcd1d185458f63080d78f2b07d..1c092dd1a8873a49818f7ce057fd16b2c6b7cdd0 100644 (file)
@@ -664,7 +664,7 @@ proceed_thread_callback (struct thread_info *thread, void *arg)
   return 0;
 }
 
-void
+static void
 ensure_valid_thread (void)
 {
   if (ptid_equal (inferior_ptid, null_ptid)
@@ -676,7 +676,7 @@ ensure_valid_thread (void)
    is likely to mix up recorded and live target data.  So simply
    disallow those commands.  */
 
-void
+static void
 ensure_not_tfind_mode (void)
 {
   if (get_traceframe_number () >= 0)
index 327385a690ef925a5e662e5efbdccd190ccc9533..00f6fa3384b2cc38f370463f31c050a650b7ac4a 100644 (file)
@@ -741,7 +741,7 @@ info_inferiors_command (char *args, int from_tty)
 
 /* remove-inferior ID */
 
-void
+static void
 remove_inferior_command (char *args, int from_tty)
 {
   int num;
@@ -800,7 +800,7 @@ add_inferior_with_spaces (void)
 
 /* add-inferior [-copies N] [-exec FILENAME]  */
 
-void
+static void
 add_inferior_command (char *args, int from_tty)
 {
   int i, copies = 1;
@@ -863,7 +863,7 @@ add_inferior_command (char *args, int from_tty)
 
 /* clone-inferior [-copies N] [ID] */
 
-void
+static void
 clone_inferior_command (char *args, int from_tty)
 {
   int i, copies = 1;
index e4263870f18cef7659ecf38f99f9c59b53398c97..dd6b689c966955d6527ffd2e6c30fd0958f700e8 100644 (file)
@@ -5091,7 +5091,7 @@ linux_nat_close (int quitting)
    lwpid is a "main" process id or not (it assumes so).  We reverse
    look up the "main" process id from the lwp here.  */
 
-struct address_space *
+static struct address_space *
 linux_nat_thread_address_space (struct target_ops *t, ptid_t ptid)
 {
   struct lwp_info *lwp;
@@ -5184,7 +5184,7 @@ linux_nat_core_of_thread_1 (ptid_t ptid)
 
 /* Return the cached value of the processor core for thread PTID.  */
 
-int
+static int
 linux_nat_core_of_thread (struct target_ops *ops, ptid_t ptid)
 {
   struct lwp_info *info = find_lwp_pid (ptid);
index 1aee071b338133ff2a23a7724865183910313fcf..d94cf6e4c3b2db8427f95e8cc5958900daa1b7e9 100644 (file)
@@ -864,6 +864,9 @@ linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                        linux_has_shared_address_space);
 }
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern initialize_file_ftype _initialize_linux_tdep;
+
 void
 _initialize_linux_tdep (void)
 {
index 76b97efb29d7b328aeb20230593dd329604b4c00..74528c8b913e78f3c0d1d5eb4740bdda64986c0f 100644 (file)
@@ -1766,6 +1766,9 @@ resolve_msgsend_super_stret (CORE_ADDR pc, CORE_ADDR *new_pc)
   return 0;
 }
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern initialize_file_ftype _initialize_objc_lang;
+
 void
 _initialize_objc_lang (void)
 {
index 80f978c8b94bd1d7d9a79275c296dd0546c36736..3554d182a75fc2f9d445f60c9e886366f54b28a3 100644 (file)
@@ -68,7 +68,7 @@ enum opencl_primitive_types {
 
 static struct gdbarch_data *opencl_type_data;
 
-struct type **
+static struct type **
 builtin_opencl_type (struct gdbarch *gdbarch)
 {
   return gdbarch_data (gdbarch, opencl_type_data);
@@ -961,7 +961,7 @@ Cannot perform conditional operation on vectors with different sizes"));
   return evaluate_subexp_c (expect_type, exp, pos, noside);
 }
 
-void
+static void
 opencl_language_arch_info (struct gdbarch *gdbarch,
                           struct language_arch_info *lai)
 {
@@ -1116,6 +1116,9 @@ build_opencl_types (struct gdbarch *gdbarch)
   return types;
 }
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern initialize_file_ftype _initialize_opencl_language;
+
 void
 _initialize_opencl_language (void)
 {
index 3a6598c626e3033469d936db9a256daa32860378..9b7ee2f7f5c0f014f415b4e0b44ae8664cc6f838 100644 (file)
@@ -2924,6 +2924,9 @@ cmd_record_goto (char *arg, int from_tty)
   print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC);
 }
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern initialize_file_ftype _initialize_record;
+
 void
 _initialize_record (void)
 {
index baa3ddafa99b12c54038446716b294bdeb0c9083..09bf18ea4b65731e4796de08edeeaabca21c2bec 100644 (file)
@@ -1583,7 +1583,7 @@ remote_notice_new_inferior (ptid_t currthread, int running)
 
 /* Return the private thread data, creating it if necessary.  */
 
-struct private_thread_info *
+static struct private_thread_info *
 demand_private_info (ptid_t ptid)
 {
   struct thread_info *info = find_thread_ptid (ptid);
@@ -8989,7 +8989,7 @@ remote_get_thread_local_address (struct target_ops *ops,
 /* Provide thread local base, i.e. Thread Information Block address.
    Returns 1 if ptid is found and thread_local_base is non zero.  */
 
-int
+static int
 remote_get_tib_address (ptid_t ptid, CORE_ADDR *addr)
 {
   if (remote_protocol_packets[PACKET_qGetTIBAddr].support != PACKET_DISABLE)
@@ -9914,7 +9914,7 @@ remote_supports_multi_process (void)
   return rs->extended && remote_multi_process_p (rs);
 }
 
-int
+static int
 remote_supports_cond_tracepoints (void)
 {
   struct remote_state *rs = get_remote_state ();
@@ -9930,7 +9930,7 @@ remote_supports_cond_breakpoints (void)
   return rs->cond_breakpoints;
 }
 
-int
+static int
 remote_supports_fast_tracepoints (void)
 {
   struct remote_state *rs = get_remote_state ();
@@ -10388,7 +10388,7 @@ remote_get_trace_status (struct trace_status *ts)
   return ts->running;
 }
 
-void
+static void
 remote_get_tracepoint_status (struct breakpoint *bp,
                              struct uploaded_tp *utp)
 {
index d983a800e05ed0ed3ca55d8a41f2688ee62cecff..da748e70c38bfa04eb6785e7d4bba60d1aa113d9 100644 (file)
@@ -542,6 +542,9 @@ skip_re_set (void)
     }
 }
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern initialize_file_ftype _initialize_step_skip;
+
 void
 _initialize_step_skip (void)
 {
index f74655140f1d0a6f6bc29be0d153ed73e7c6921c..c2580a1d4b886db122bf5c085f0f950ad934b4ad 100644 (file)
@@ -2600,7 +2600,7 @@ find_pc_line_pc_range (CORE_ADDR pc, CORE_ADDR *startptr, CORE_ADDR *endptr)
    table.  If such an entry cannot be found, return FUNC_ADDR
    unaltered.  */
 
-CORE_ADDR
+static CORE_ADDR
 skip_prologue_using_lineinfo (CORE_ADDR func_addr, struct symtab *symtab)
 {
   CORE_ADDR func_start, func_end;
index 824d5728386f5538e7a04bf3ac6253ed3dfe2194..0442a6005d9a9c30a8a5595bc284dcf52ac166ec 100644 (file)
@@ -347,7 +347,7 @@ find_trace_state_variable (const char *name)
   return NULL;
 }
 
-void
+static void
 delete_trace_state_variable (const char *name)
 {
   struct trace_state_variable *tsv;
@@ -367,7 +367,7 @@ delete_trace_state_variable (const char *name)
 /* The 'tvariable' command collects a name and optional expression to
    evaluate into an initial value.  */
 
-void
+static void
 trace_variable_command (char *args, int from_tty)
 {
   struct expression *expr;
@@ -429,7 +429,7 @@ trace_variable_command (char *args, int from_tty)
   do_cleanups (old_chain);
 }
 
-void
+static void
 delete_trace_variable_command (char *args, int from_tty)
 {
   int ix;
@@ -3344,7 +3344,7 @@ free_uploaded_tps (struct uploaded_tp **utpp)
 /* Given a number and address, return an uploaded tracepoint with that
    number, creating if necessary.  */
 
-struct uploaded_tsv *
+static struct uploaded_tsv *
 get_uploaded_tsv (int num, struct uploaded_tsv **utsvp)
 {
   struct uploaded_tsv *utsv;
@@ -3391,7 +3391,7 @@ cond_string_is_same (char *str1, char *str2)
    toggle that freely, and may have done so in anticipation of the
    next trace run.  Return the location of matched tracepoint.  */
 
-struct bp_location *
+static struct bp_location *
 find_matching_tracepoint_location (struct uploaded_tp *utp)
 {
   VEC(breakpoint_p) *tp_vec = all_tracepoints ();
@@ -3474,7 +3474,7 @@ merge_uploaded_tracepoints (struct uploaded_tp **uploaded_tps)
 /* Trace state variables don't have much to identify them beyond their
    name, so just use that to detect matches.  */
 
-struct trace_state_variable *
+static struct trace_state_variable *
 find_matching_tsv (struct uploaded_tsv *utsv)
 {
   if (!utsv->name)
@@ -3483,7 +3483,7 @@ find_matching_tsv (struct uploaded_tsv *utsv)
   return find_trace_state_variable (utsv->name);
 }
 
-struct trace_state_variable *
+static struct trace_state_variable *
 create_tsv_from_upload (struct uploaded_tsv *utsv)
 {
   const char *namebase;
@@ -5052,7 +5052,7 @@ parse_traceframe_info (const char *tframe_info)
    This is where we avoid re-fetching the object from the target if we
    already have it cached.  */
 
-struct traceframe_info *
+static struct traceframe_info *
 get_traceframe_info (void)
 {
   if (traceframe_info == NULL)
index 68e5f0229dd746b963e485492743a995169a6e10..bee6907413052d57ce24e540099899a17e5a229e 100644 (file)
@@ -2936,7 +2936,7 @@ pack_long (gdb_byte *buf, struct type *type, LONGEST num)
 
 /* Pack NUM into BUF using a target format of TYPE.  */
 
-void
+static void
 pack_unsigned_long (gdb_byte *buf, struct type *type, ULONGEST num)
 {
   int len;
index 6186db03c8cc5ed029153506eeb0edce4c9e2e2c..b6e67c6a68c243e05ef7e14485c3fa85ecb3e087 100644 (file)
@@ -515,7 +515,7 @@ is_root_p (struct varobj *var)
 #ifdef HAVE_PYTHON
 /* Helper function to install a Python environment suitable for
    use during operations on VAR.  */
-struct cleanup *
+static struct cleanup *
 varobj_ensure_python_env (struct varobj *var)
 {
   return ensure_python_env (var->root->exp->gdbarch,
index e111d4185bb54807ee2e383cb2068eeafb8a9d6a..6b84effaaabc191d6b597e6cbbca365c165d7366 100644 (file)
@@ -425,6 +425,9 @@ init_w32_command_list (void)
     }
 }
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern initialize_file_ftype _initialize_windows_tdep;
+
 void
 _initialize_windows_tdep (void)
 {
index 105b265385d2a7dec562fbcded61e0e64a0fd896..f4b16f47005eaf081ae38917e62e1e1dafe8e007 100644 (file)
@@ -151,7 +151,7 @@ free_syscalls_info (void *arg)
   xfree (sysinfo);
 }
 
-struct cleanup *
+static struct cleanup *
 make_cleanup_free_syscalls_info (struct syscalls_info *sysinfo)
 {
   return make_cleanup (free_syscalls_info, sysinfo);