From 198beae2cfaf8ea8bfd554ef8d3d3feeabc33ed7 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 20 Oct 2003 14:38:46 +0000 Subject: 2003-10-19 Andrew Cagney * targets.c: Replace "struct sec" with "struct bfd_section" * syms.c, sparclynx.c, section.c, opncls.c: Ditto. * libcoff-in.h, libbfd-in.h, elfxx-target.h: Ditto. * elf.c, coffgen.c, bfd.c, bfd-in.h, aoutf1.h: Ditto. * aout-tic30.c, aout-target.h: * bfd-in2.h, libcoff.h, libbfd.h: Regenerate. Index: binutils/ChangeLog 2003-10-19 Andrew Cagney * coffgrok.h (coff_section): Replace 'struct sec" with "struct bfd_section". Index: gdb/ChangeLog 2003-10-19 Andrew Cagney * symtab.c: Replace "struct sec" with "struct bfd_section". * objfiles.c, linespec.c, blockframe.c, block.c: Ditto. Index: ld/ChangeLog 2003-10-19 Andrew Cagney * pe-dll.c: Replace "struct sec" with "struct bfd_section". Index: sim/common/ChangeLog 2003-10-19 Andrew Cagney * sim-base.h: Replace "struct sec" with "struct bfd_section". --- gdb/ChangeLog | 5 +++++ gdb/block.c | 4 ++-- gdb/blockframe.c | 4 ++-- gdb/linespec.c | 2 +- gdb/objfiles.c | 12 ++++++------ gdb/symtab.c | 2 +- 6 files changed, 17 insertions(+), 12 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f64fe7b..28fa745 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-10-20 Andrew Cagney + + * symtab.c: Replace "struct sec" with "struct bfd_section". + * objfiles.c, linespec.c, blockframe.c, block.c: Ditto. + 2003-10-19 Michael Chastain * config/djgpp/fnchange.lst: Add lines for: diff --git a/gdb/block.c b/gdb/block.c index 8729a24..28b1181 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -71,7 +71,7 @@ block_function (const struct block *bl) is NULL, we don't pass this information back to the caller. */ struct blockvector * -blockvector_for_pc_sect (CORE_ADDR pc, struct sec *section, +blockvector_for_pc_sect (CORE_ADDR pc, struct bfd_section *section, int *pindex, struct symtab *symtab) { struct block *b; @@ -136,7 +136,7 @@ blockvector_for_pc (CORE_ADDR pc, int *pindex) in the specified section, or 0 if there is none. */ struct block * -block_for_pc_sect (CORE_ADDR pc, struct sec *section) +block_for_pc_sect (CORE_ADDR pc, struct bfd_section *section) { struct blockvector *bl; int index; diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 04be0d1..fa2a17f 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -294,7 +294,7 @@ get_frame_function (struct frame_info *frame) Returns 0 if function is not known. */ struct symbol * -find_pc_sect_function (CORE_ADDR pc, struct sec *section) +find_pc_sect_function (CORE_ADDR pc, struct bfd_section *section) { struct block *b = block_for_pc_sect (pc, section); if (b == 0) @@ -317,7 +317,7 @@ find_pc_function (CORE_ADDR pc) static CORE_ADDR cache_pc_function_low = 0; static CORE_ADDR cache_pc_function_high = 0; static char *cache_pc_function_name = 0; -static struct sec *cache_pc_function_section = NULL; +static struct bfd_section *cache_pc_function_section = NULL; /* Clear cache, e.g. when symbol table is discarded. */ diff --git a/gdb/linespec.c b/gdb/linespec.c index 7e8c6a7..b3eb05f 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -1736,7 +1736,7 @@ minsym_found (int funfirstline, struct minimal_symbol *msymbol) values.sals = (struct symtab_and_line *) xmalloc (sizeof (struct symtab_and_line)); values.sals[0] = find_pc_sect_line (SYMBOL_VALUE_ADDRESS (msymbol), - (struct sec *) 0, 0); + (struct bfd_section *) 0, 0); values.sals[0].section = SYMBOL_BFD_SECTION (msymbol); if (funfirstline) { diff --git a/gdb/objfiles.c b/gdb/objfiles.c index ce927fc..1321b82 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -1044,14 +1044,14 @@ map_to_file (int fd) #endif /* defined(USE_MMALLOC) && defined(HAVE_MMAP) */ -/* Returns a section whose range includes PC and SECTION, - or NULL if none found. Note the distinction between the return type, - struct obj_section (which is defined in gdb), and the input type - struct sec (which is a bfd-defined data type). The obj_section - contains a pointer to the bfd struct sec section. */ +/* Returns a section whose range includes PC and SECTION, or NULL if + none found. Note the distinction between the return type, struct + obj_section (which is defined in gdb), and the input type "struct + bfd_section" (which is a bfd-defined data type). The obj_section + contains a pointer to the "struct bfd_section". */ struct obj_section * -find_pc_sect_section (CORE_ADDR pc, struct sec *section) +find_pc_sect_section (CORE_ADDR pc, struct bfd_section *section) { struct obj_section *s; struct objfile *objfile; diff --git a/gdb/symtab.c b/gdb/symtab.c index d984a35..3a3a547 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1872,7 +1872,7 @@ find_pc_symtab (CORE_ADDR pc) /* If it's worth the effort, we could be using a binary search. */ struct symtab_and_line -find_pc_sect_line (CORE_ADDR pc, struct sec *section, int notcurrent) +find_pc_sect_line (CORE_ADDR pc, struct bfd_section *section, int notcurrent) { struct symtab *s; struct linetable *l; -- cgit v1.1