summaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2009-05-22 23:49:13 +0000
committerPedro Alves <pedro@codesourcery.com>2009-05-22 23:49:13 +0000
commit19b4a952dd590a49db11d4b1132835756b2a7ade (patch)
tree0269beee72360ee20a1f409a4eaf7ad12def401d /gdb/target.c
parent58a75428be8d52a2b0270b8e4951c6047704369c (diff)
downloadgdb-19b4a952dd590a49db11d4b1132835756b2a7ade.tar.gz
* 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 6dfa73667da..6a180f336b4 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++)