From: Aleksandar Ristovski Date: Thu, 31 Jan 2013 13:52:52 +0000 (+0000) Subject: * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=765a97abdac19e9a1e5409e0c715b0441305cf51;p=binutils-gdb.git * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo. (svr4_read_so_list): Remove unused lmo. * solib-target.c (solib_target_relocate_section_addresses): Remove unused flags. Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00744.html --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c15dd327741..1524b600839 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2013-01-31 Aleksandar Ristovski + + * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo. + (svr4_read_so_list): Remove unused lmo. + * solib-target.c (solib_target_relocate_section_addresses): Remove + unused flags. + 2013-01-30 Tom Tromey * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0". diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 396eaf5c24a..0f70097e089 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -848,7 +848,6 @@ svr4_keep_data_in_core (CORE_ADDR vaddr, unsigned long size) CORE_ADDR ldsomap; struct so_list *new; struct cleanup *old_chain; - struct link_map_offsets *lmo; CORE_ADDR name_lm; info = get_svr4_info (); @@ -862,7 +861,6 @@ svr4_keep_data_in_core (CORE_ADDR vaddr, unsigned long size) if (!ldsomap) return 0; - lmo = svr4_fetch_link_map_offsets (); new = XZALLOC (struct so_list); old_chain = make_cleanup (xfree, new); new->lm_info = lm_info_read (ldsomap); @@ -1175,7 +1173,6 @@ svr4_read_so_list (CORE_ADDR lm, struct so_list ***link_ptr_ptr, for (; lm != 0; prev_lm = lm, lm = next_lm) { - struct link_map_offsets *lmo = svr4_fetch_link_map_offsets (); struct so_list *new; struct cleanup *old_chain; int errcode; diff --git a/gdb/solib-target.c b/gdb/solib-target.c index 23cb2e7f14e..d897bc0f278 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -333,7 +333,6 @@ static void solib_target_relocate_section_addresses (struct so_list *so, struct target_section *sec) { - int flags = bfd_get_section_flags (sec->bfd, sec->the_bfd_section); CORE_ADDR offset; /* Build the offset table only once per object file. We can not do