aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-05-22 23:49:14 +0000
committerPedro Alves <palves@redhat.com>2009-05-22 23:49:14 +0000
commit0542c86dbbe17befae1ab88c8a18296d89388bb5 (patch)
tree8041fdc01aa412478304c4bff3b11c8529b8486b /gdb/target.c
parent4daadc0d02d6b55962e561882f4768c0c9699010 (diff)
downloadgdb-0542c86dbbe17befae1ab88c8a18296d89388bb5.zip
gdb-0542c86dbbe17befae1ab88c8a18296d89388bb5.tar.gz
gdb-0542c86dbbe17befae1ab88c8a18296d89388bb5.tar.bz2
* target.h (struct section_table): Rename to ...
(struct target_section): ... this. * exec.c: Adjust all references. * exec.h: Adjust all references. * nto-tdep.c: Adjust all references. * nto-tdep.h: Adjust all references. * ppc-linux-tdep.c: Adjust all references. * rs6000-nat.c: Adjust all references. * s390-tdep.c: Adjust all references. * solib-darwin.c: Adjust all references. * solib-frv.c: Adjust all references. * solib-irix.c: Adjust all references. * solib-null.c: Adjust all references. * solib-osf.c: Adjust all references. * solib-pa64.c: Adjust all references. * solib-som.c: Adjust all references. * solib-sunos.c: Adjust all references. * solib-svr4.c: Adjust all references. * solib-target.c: Adjust all references. * solib.c: Adjust all references. * solist.h: Adjust all references. * symfile.c: Adjust all references. * symfile.h: Adjust all references. * target.c: Adjust all references.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 6dfa736..6a180f3 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -1017,10 +1017,10 @@ done:
}
/* Find a section containing ADDR. */
-struct section_table *
+struct target_section *
target_section_by_addr (struct target_ops *target, CORE_ADDR addr)
{
- struct section_table *secp;
+ struct target_section *secp;
for (secp = target->to_sections;
secp < target->to_sections_end;
secp++)
@@ -1049,7 +1049,7 @@ memory_xfer_partial (struct target_ops *ops, void *readbuf, const void *writebuf
/* Try the executable file, if "trust-readonly-sections" is set. */
if (readbuf != NULL && trust_readonly)
{
- struct section_table *secp;
+ struct target_section *secp;
secp = target_section_by_addr (ops, memaddr);
if (secp != NULL
@@ -2348,7 +2348,7 @@ int
target_resize_to_sections (struct target_ops *target, int num_added)
{
struct target_ops **t;
- struct section_table *old_value;
+ struct target_section *old_value;
int old_count;
old_value = target->to_sections;
@@ -2356,15 +2356,15 @@ target_resize_to_sections (struct target_ops *target, int num_added)
if (target->to_sections)
{
old_count = target->to_sections_end - target->to_sections;
- target->to_sections = (struct section_table *)
+ target->to_sections = (struct target_section *)
xrealloc ((char *) target->to_sections,
- (sizeof (struct section_table)) * (num_added + old_count));
+ (sizeof (struct target_section)) * (num_added + old_count));
}
else
{
old_count = 0;
- target->to_sections = (struct section_table *)
- xmalloc ((sizeof (struct section_table)) * num_added);
+ target->to_sections = (struct target_section *)
+ xmalloc ((sizeof (struct target_section)) * num_added);
}
target->to_sections_end = target->to_sections + (num_added + old_count);
@@ -2408,7 +2408,7 @@ remove_target_sections (bfd *abfd)
for (t = target_structs; t < target_structs + target_struct_size; t++)
{
- struct section_table *src, *dest;
+ struct target_section *src, *dest;
dest = (*t)->to_sections;
for (src = (*t)->to_sections; src < (*t)->to_sections_end; src++)