aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-22 15:01:50 +0000
committerTom Tromey <tromey@redhat.com>2012-08-22 15:01:50 +0000
commited9eebafbc78ba83d01230609016411c065b499f (patch)
treeed52a3d18d8812f9f5c7c91cf5be9c8cf5731867 /gdb/target.h
parentb4893d482803eb1c4241ff751193fdcf0bf6650c (diff)
downloadgdb-ed9eebafbc78ba83d01230609016411c065b499f.zip
gdb-ed9eebafbc78ba83d01230609016411c065b499f.tar.gz
gdb-ed9eebafbc78ba83d01230609016411c065b499f.tar.bz2
* exec.c (exec_close, exec_file_attach): Update.
(add_to_section_table): Initialize 'key' field. (add_target_sections, remove_target_sections): Add 'key' argument. * exec.h (add_target_sections, remove_target_sections): Add 'key' argument. * solib.c (solib_map_sections, update_solib_list, clear_solib) (reload_shared_libraries_1): Update. * target.h (struct target_section) <key>: New field.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 95cfbe2..382dacb 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1804,6 +1804,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;
+
bfd *bfd; /* BFD file pointer */
};