diff options
author | Pedro Alves <palves@redhat.com> | 2009-05-22 23:49:14 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-05-22 23:49:14 +0000 |
commit | 0542c86dbbe17befae1ab88c8a18296d89388bb5 (patch) | |
tree | 8041fdc01aa412478304c4bff3b11c8529b8486b /gdb/exec.c | |
parent | 4daadc0d02d6b55962e561882f4768c0c9699010 (diff) | |
download | gdb-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/exec.c')
-rw-r--r-- | gdb/exec.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -351,7 +351,7 @@ static void add_to_section_table (bfd *abfd, struct bfd_section *asect, void *table_pp_char) { - struct section_table **table_pp = (struct section_table **) table_pp_char; + struct target_section **table_pp = (struct target_section **) table_pp_char; flagword aflag; /* Check the section flags, but do not discard zero-length sections, since @@ -374,15 +374,15 @@ add_to_section_table (bfd *abfd, struct bfd_section *asect, Returns 0 if OK, 1 on error. */ int -build_section_table (struct bfd *some_bfd, struct section_table **start, - struct section_table **end) +build_section_table (struct bfd *some_bfd, struct target_section **start, + struct target_section **end) { unsigned count; count = bfd_count_sections (some_bfd); if (*start) xfree (* start); - *start = (struct section_table *) xmalloc (count * sizeof (**start)); + *start = (struct target_section *) xmalloc (count * sizeof (**start)); *end = *start; bfd_map_over_sections (some_bfd, add_to_section_table, (char *) end); if (*end > *start + count) @@ -470,12 +470,12 @@ map_vmap (bfd *abfd, bfd *arch) static int section_table_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write, - struct section_table *sections, - struct section_table *sections_end, + struct target_section *sections, + struct target_section *sections_end, const char *section_name) { int res; - struct section_table *p; + struct target_section *p; CORE_ADDR nextsectaddr, memend; if (len <= 0) @@ -536,8 +536,8 @@ section_table_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int section_table_xfer_memory_partial (gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len, - struct section_table *sections, - struct section_table *sections_end) + struct target_section *sections, + struct target_section *sections_end) { if (readbuf != NULL) return section_table_xfer_memory (offset, readbuf, len, 0, @@ -597,7 +597,7 @@ xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write, void print_section_info (struct target_ops *t, bfd *abfd) { - struct section_table *p; + struct target_section *p; /* FIXME: 16 is not wide enough when gdbarch_addr_bit > 64. */ int wid = gdbarch_addr_bit (gdbarch_from_bfd (abfd)) <= 32 ? 8 : 16; @@ -661,7 +661,7 @@ exec_files_info (struct target_ops *t) static void set_section_command (char *args, int from_tty) { - struct section_table *p; + struct target_section *p; char *secname; unsigned seclen; unsigned long secaddr; @@ -704,7 +704,7 @@ set_section_command (char *args, int from_tty) void exec_set_section_address (const char *filename, int index, CORE_ADDR address) { - struct section_table *p; + struct target_section *p; for (p = exec_ops.to_sections; p < exec_ops.to_sections_end; p++) { |