2010-05-05 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 5 May 2010 19:50:10 +0000 (19:50 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 5 May 2010 19:50:10 +0000 (19:50 +0000)
* solib-svr4.c (find_program_interpreter): Delete unused variable.
(svr4_solib_create_inferior_hook): Add ifdef around
conditionally-used variable declarations.

gdb/ChangeLog
gdb/solib-svr4.c

index c4d20d9d0bc5520735bdc83a4fdcdb93271d22d5..2eb4d235672ce4823518ffe7e5c0e97c8c8c67c1 100644 (file)
@@ -1,5 +1,9 @@
 2010-05-05  Michael Snyder  <msnyder@vmware.com>
 
+       * solib-svr4.c (find_program_interpreter): Delete unused variable.
+       (svr4_solib_create_inferior_hook): Add ifdef around 
+       conditionally-used variable declarations.
+
        * solib.c (solib_find): Delete unused variable.
        (free_so_symbols): Delete unused variable.
        (info_sharedlibrary_command): Delete unused variable.
index 1928af0a24c053874d18d6a7b938755273fd4721..8dfffad3a8815955dc4371121a9023a399d2328d 100644 (file)
@@ -581,7 +581,6 @@ find_program_interpreter (void)
      interp_sect = bfd_get_section_by_name (exec_bfd, ".interp");
      if (interp_sect != NULL)
       {
-       CORE_ADDR sect_addr = bfd_section_vma (exec_bfd, interp_sect);
        int sect_size = bfd_section_size (exec_bfd, interp_sect);
 
        buf = xmalloc (sect_size);
@@ -1910,8 +1909,10 @@ svr4_relocate_main_executable (void)
 static void
 svr4_solib_create_inferior_hook (int from_tty)
 {
+#if defined(_SCO_DS)
   struct inferior *inf;
   struct thread_info *tp;
+#endif /* defined(_SCO_DS) */
   struct svr4_info *info;
 
   info = get_svr4_info ();