aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-07-22 20:51:11 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-07-22 20:51:11 +0000
commit046ac79fc7a2417eb1e0e00bc496ff51a505d037 (patch)
treeb95a3cdf89ba73dea3a4e5f1a2660f20d28431ec /gdb/target.h
parent632a40b341926ceac065d00bf38fab366599ccff (diff)
downloadgdb-046ac79fc7a2417eb1e0e00bc496ff51a505d037.zip
gdb-046ac79fc7a2417eb1e0e00bc496ff51a505d037.tar.gz
gdb-046ac79fc7a2417eb1e0e00bc496ff51a505d037.tar.bz2
2013-07-22 Doug Evans <dje@google.com>
gdb/ * exec.h (remove_target_sections): Delete arg abfd. * exec.c (remove_target_sections): Delete arg abfd. (exec_close): Update call to remove_target_sections. * solib.c (update_solib_list): Ditto. (reload_shared_libraries_1): Ditto. (clear_solib): Ditto, and unconditionally call remove_target_sections.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 21e5792..9ea87bb 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1902,11 +1902,12 @@ struct target_section
struct bfd_section *the_bfd_section;
- /* A given BFD may appear multiple times in the target section
- list, so each BFD is associated with a given key. The key is
- just some convenient pointer that can be used to differentiate
- the BFDs. These are managed only by convention. */
- void *key;
+ /* The "owner" of the section.
+ It can be any unique value. It is set by add_target_sections
+ and used by remove_target_sections.
+ For example, for executables it is a pointer to exec_bfd and
+ for shlibs it is the so_list pointer. */
+ void *owner;
};
/* Holds an array of target sections. Defined by [SECTIONS..SECTIONS_END[. */