gdb/testsuite/
[binutils-gdb.git] / gdb / solib.c
index df8f3d33d6fdfa434ff4c51e272ba6df1ab83af0..837814b5906ab1f6e90689c1296dcbe55367d008 100644 (file)
@@ -68,6 +68,7 @@ static struct target_so_ops *
 solib_ops (struct gdbarch *gdbarch)
 {
   struct target_so_ops **ops = gdbarch_data (gdbarch, solib_data);
+
   return *ops;
 }
 
@@ -77,6 +78,7 @@ void
 set_solib_ops (struct gdbarch *gdbarch, struct target_so_ops *new_ops)
 {
   struct target_so_ops **ops = gdbarch_data (gdbarch, solib_data);
+
   *ops = new_ops;
 }
 \f
@@ -169,6 +171,7 @@ solib_find (char *in_pathname, int *fd)
   if (solib_symbols_extension)
     {
       char *p = in_pathname + strlen (in_pathname);
+
       while (p > in_pathname && *p != '.')
        p--;
 
@@ -281,8 +284,6 @@ solib_find (char *in_pathname, int *fd)
       found_file = open (temp_pathname, O_RDONLY | O_BINARY, 0);
       if (found_file < 0)
        {
-         char *p;
-
          xfree (temp_pathname);
 
          /* If the search in gdb_sysroot still failed, try fully
@@ -548,8 +549,6 @@ solib_map_sections (struct so_list *so)
 static void
 free_so_symbols (struct so_list *so)
 {
-  char *bfd_filename = 0;
-
   if (so->sections)
     {
       xfree (so->sections);
@@ -1000,7 +999,6 @@ static void
 info_sharedlibrary_command (char *pattern, int from_tty)
 {
   struct so_list *so = NULL;   /* link map state variable */
-  int header_done = 0;
   int so_missing_debug_info = 0;
   int addr_width;
   int nr_libs;
@@ -1205,6 +1203,7 @@ clear_solib (void)
   while (so_list_head)
     {
       struct so_list *so = so_list_head;
+
       so_list_head = so->next;
       observer_notify_solib_unloaded (so);
       if (so->abfd)
@@ -1234,6 +1233,7 @@ void
 solib_create_inferior_hook (int from_tty)
 {
   struct target_so_ops *ops = solib_ops (target_gdbarch);
+
   ops->solib_create_inferior_hook (from_tty);
 }
 
@@ -1257,6 +1257,7 @@ int
 in_solib_dynsym_resolve_code (CORE_ADDR pc)
 {
   struct target_so_ops *ops = solib_ops (target_gdbarch);
+
   return ops->in_dynsym_resolve_code (pc);
 }
 
@@ -1318,7 +1319,6 @@ reload_shared_libraries_1 (int from_tty)
     {
       char *filename, *found_pathname = NULL;
       bfd *abfd;
-      int scratch_chan;
       int was_loaded = so->symbols_loaded;
       const int flags =
        SYMFILE_DEFER_BP_RESET | (from_tty ? SYMFILE_VERBOSE : 0);
@@ -1454,8 +1454,6 @@ extern initialize_file_ftype _initialize_solib; /* -Wmissing-prototypes */
 void
 _initialize_solib (void)
 {
-  struct cmd_list_element *c;
-
   solib_data = gdbarch_data_register_pre_init (solib_init);
 
   add_com ("sharedlibrary", class_files, sharedlibrary_command,