* 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
This commit is contained in:
Aleksandar Ristovski 2013-01-31 13:52:52 +00:00
parent c0fd7846dc
commit 765a97abda
3 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
* 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 <tromey@redhat.com>
* hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".

View file

@ -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;

View file

@ -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