diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2013-01-31 13:52:52 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2013-01-31 13:52:52 +0000 |
commit | 765a97abdac19e9a1e5409e0c715b0441305cf51 (patch) | |
tree | 5fa53536b0b0491a74432785f5a6273da371e14e | |
parent | c0fd7846dcd895eff508728d5741aee47112a469 (diff) | |
download | gdb-765a97abdac19e9a1e5409e0c715b0441305cf51.zip gdb-765a97abdac19e9a1e5409e0c715b0441305cf51.tar.gz gdb-765a97abdac19e9a1e5409e0c715b0441305cf51.tar.bz2 |
* 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
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/solib-svr4.c | 3 | ||||
-rw-r--r-- | gdb/solib-target.c | 1 |
3 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c15dd32..1524b60 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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". diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 396eaf5..0f70097 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 23cb2e7..d897bc0 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 |