aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-05 19:50:10 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-05 19:50:10 +0000
commit1cd337a56bd80935525a3c16a2f710a24ad26b34 (patch)
tree4f0207887f522e89f5ea9f180a51c6c272ed9a39 /gdb/solib-svr4.c
parentb00e3f5614d168c0ca7105b1544f79685e8b4a52 (diff)
downloadgdb-1cd337a56bd80935525a3c16a2f710a24ad26b34.zip
gdb-1cd337a56bd80935525a3c16a2f710a24ad26b34.tar.gz
gdb-1cd337a56bd80935525a3c16a2f710a24ad26b34.tar.bz2
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.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r--gdb/solib-svr4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 1928af0..8dfffad 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -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 ();