2009-12-02 Tristan Gingold <gingold@adacore.com>
* dwarf2read.c (dwarf2_build_psymtabs_easy): Remove mainline parameter. (dwarf2_build_psymtabs_hard): Ditto. (dwarf2_build_psymtabs): Ajust calls. * stabsread.h (elfstab_build_psymtabs): Remove mainline parameter on the prototype. (coffstab_build_psymtabs): Ditto. (stabsect_build_psymtabs): Ditto. * dbxread.c (coffstab_build_psymtabs): Remove mainline parameter on the definition. (elfstab_build_psymtabs): Ditto. (stabsect_build_psymtabs): Ditto. * coffread.c (coff_symfile_read): Adjust call. * elfread.c (elf_symfile_read): Ditto. * somread.c (som_symfile_read): Ditto.
This commit is contained in:
parent
06be6983bb
commit
c67a9c901a
7 changed files with 30 additions and 25 deletions
|
@ -1,4 +1,21 @@
|
||||||
2009-12-01 Tristan Gingold <gingold@adacore.com>
|
2009-12-02 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dwarf2_build_psymtabs_easy): Remove mainline parameter.
|
||||||
|
(dwarf2_build_psymtabs_hard): Ditto.
|
||||||
|
(dwarf2_build_psymtabs): Ajust calls.
|
||||||
|
* stabsread.h (elfstab_build_psymtabs): Remove mainline parameter on
|
||||||
|
the prototype.
|
||||||
|
(coffstab_build_psymtabs): Ditto.
|
||||||
|
(stabsect_build_psymtabs): Ditto.
|
||||||
|
* dbxread.c (coffstab_build_psymtabs): Remove mainline parameter on
|
||||||
|
the definition.
|
||||||
|
(elfstab_build_psymtabs): Ditto.
|
||||||
|
(stabsect_build_psymtabs): Ditto.
|
||||||
|
* coffread.c (coff_symfile_read): Adjust call.
|
||||||
|
* elfread.c (elf_symfile_read): Ditto.
|
||||||
|
* somread.c (som_symfile_read): Ditto.
|
||||||
|
|
||||||
|
2009-12-02 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* charset.c (_initialize_charset): Set a default value to
|
* charset.c (_initialize_charset): Set a default value to
|
||||||
auto_host_charset_name if empty.
|
auto_host_charset_name if empty.
|
||||||
|
|
|
@ -634,7 +634,6 @@ coff_symfile_read (struct objfile *objfile, int mainline)
|
||||||
stabstrsize = bfd_section_size (abfd, info->stabstrsect);
|
stabstrsize = bfd_section_size (abfd, info->stabstrsect);
|
||||||
|
|
||||||
coffstab_build_psymtabs (objfile,
|
coffstab_build_psymtabs (objfile,
|
||||||
mainline,
|
|
||||||
info->textaddr, info->textsize,
|
info->textaddr, info->textsize,
|
||||||
info->stabsects,
|
info->stabsects,
|
||||||
info->stabstrsect->filepos, stabstrsize);
|
info->stabstrsect->filepos, stabstrsize);
|
||||||
|
|
|
@ -3320,8 +3320,6 @@ no enclosing block"));
|
||||||
OBJFILE is the object file we are reading symbols from.
|
OBJFILE is the object file we are reading symbols from.
|
||||||
ADDR is the address relative to which the symbols are (e.g.
|
ADDR is the address relative to which the symbols are (e.g.
|
||||||
the base address of the text segment).
|
the base address of the text segment).
|
||||||
MAINLINE is true if we are reading the main symbol
|
|
||||||
table (as opposed to a shared lib or dynamically loaded file).
|
|
||||||
TEXTADDR is the address of the text section.
|
TEXTADDR is the address of the text section.
|
||||||
TEXTSIZE is the size of the text section.
|
TEXTSIZE is the size of the text section.
|
||||||
STABSECTS is the list of .stab sections in OBJFILE.
|
STABSECTS is the list of .stab sections in OBJFILE.
|
||||||
|
@ -3332,7 +3330,7 @@ no enclosing block"));
|
||||||
adjusted for coff details. */
|
adjusted for coff details. */
|
||||||
|
|
||||||
void
|
void
|
||||||
coffstab_build_psymtabs (struct objfile *objfile, int mainline,
|
coffstab_build_psymtabs (struct objfile *objfile,
|
||||||
CORE_ADDR textaddr, unsigned int textsize,
|
CORE_ADDR textaddr, unsigned int textsize,
|
||||||
struct stab_section_list *stabsects,
|
struct stab_section_list *stabsects,
|
||||||
file_ptr stabstroffset, unsigned int stabstrsize)
|
file_ptr stabstroffset, unsigned int stabstrsize)
|
||||||
|
@ -3415,8 +3413,6 @@ coffstab_build_psymtabs (struct objfile *objfile, int mainline,
|
||||||
OBJFILE is the object file we are reading symbols from.
|
OBJFILE is the object file we are reading symbols from.
|
||||||
ADDR is the address relative to which the symbols are (e.g.
|
ADDR is the address relative to which the symbols are (e.g.
|
||||||
the base address of the text segment).
|
the base address of the text segment).
|
||||||
MAINLINE is true if we are reading the main symbol
|
|
||||||
table (as opposed to a shared lib or dynamically loaded file).
|
|
||||||
STABSECT is the BFD section information for the .stab section.
|
STABSECT is the BFD section information for the .stab section.
|
||||||
STABSTROFFSET and STABSTRSIZE define the location in OBJFILE where the
|
STABSTROFFSET and STABSTRSIZE define the location in OBJFILE where the
|
||||||
.stabstr section exists.
|
.stabstr section exists.
|
||||||
|
@ -3425,8 +3421,7 @@ coffstab_build_psymtabs (struct objfile *objfile, int mainline,
|
||||||
adjusted for elf details. */
|
adjusted for elf details. */
|
||||||
|
|
||||||
void
|
void
|
||||||
elfstab_build_psymtabs (struct objfile *objfile, int mainline,
|
elfstab_build_psymtabs (struct objfile *objfile, asection *stabsect,
|
||||||
asection *stabsect,
|
|
||||||
file_ptr stabstroffset, unsigned int stabstrsize)
|
file_ptr stabstroffset, unsigned int stabstrsize)
|
||||||
{
|
{
|
||||||
int val;
|
int val;
|
||||||
|
@ -3501,15 +3496,13 @@ elfstab_build_psymtabs (struct objfile *objfile, int mainline,
|
||||||
OBJFILE is the object file we are reading symbols from.
|
OBJFILE is the object file we are reading symbols from.
|
||||||
ADDR is the address relative to which the symbols are (e.g. the base address
|
ADDR is the address relative to which the symbols are (e.g. the base address
|
||||||
of the text segment).
|
of the text segment).
|
||||||
MAINLINE is true if we are reading the main symbol table (as opposed to a
|
|
||||||
shared lib or dynamically loaded file).
|
|
||||||
STAB_NAME is the name of the section that contains the stabs.
|
STAB_NAME is the name of the section that contains the stabs.
|
||||||
STABSTR_NAME is the name of the section that contains the stab strings.
|
STABSTR_NAME is the name of the section that contains the stab strings.
|
||||||
|
|
||||||
This routine is mostly copied from dbx_symfile_init and dbx_symfile_read. */
|
This routine is mostly copied from dbx_symfile_init and dbx_symfile_read. */
|
||||||
|
|
||||||
void
|
void
|
||||||
stabsect_build_psymtabs (struct objfile *objfile, int mainline, char *stab_name,
|
stabsect_build_psymtabs (struct objfile *objfile, char *stab_name,
|
||||||
char *stabstr_name, char *text_name)
|
char *stabstr_name, char *text_name)
|
||||||
{
|
{
|
||||||
int val;
|
int val;
|
||||||
|
|
|
@ -769,7 +769,7 @@ dwarf2_invalid_attrib_class_complaint (const char *arg1, const char *arg2)
|
||||||
static void dwarf2_locate_sections (bfd *, asection *, void *);
|
static void dwarf2_locate_sections (bfd *, asection *, void *);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static void dwarf2_build_psymtabs_easy (struct objfile *, int);
|
static void dwarf2_build_psymtabs_easy (struct objfile *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void dwarf2_create_include_psymtab (char *, struct partial_symtab *,
|
static void dwarf2_create_include_psymtab (char *, struct partial_symtab *,
|
||||||
|
@ -779,7 +779,7 @@ static void dwarf2_build_include_psymtabs (struct dwarf2_cu *,
|
||||||
struct die_info *,
|
struct die_info *,
|
||||||
struct partial_symtab *);
|
struct partial_symtab *);
|
||||||
|
|
||||||
static void dwarf2_build_psymtabs_hard (struct objfile *, int);
|
static void dwarf2_build_psymtabs_hard (struct objfile *);
|
||||||
|
|
||||||
static void scan_partial_symbols (struct partial_die_info *,
|
static void scan_partial_symbols (struct partial_die_info *,
|
||||||
CORE_ADDR *, CORE_ADDR *,
|
CORE_ADDR *, CORE_ADDR *,
|
||||||
|
@ -1474,14 +1474,14 @@ dwarf2_build_psymtabs (struct objfile *objfile, int mainline)
|
||||||
/* Things are significantly easier if we have .debug_aranges and
|
/* Things are significantly easier if we have .debug_aranges and
|
||||||
.debug_pubnames sections */
|
.debug_pubnames sections */
|
||||||
|
|
||||||
dwarf2_build_psymtabs_easy (objfile, mainline);
|
dwarf2_build_psymtabs_easy (objfile);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
/* only test this case for now */
|
/* only test this case for now */
|
||||||
{
|
{
|
||||||
/* In this case we have to work a bit harder */
|
/* In this case we have to work a bit harder */
|
||||||
dwarf2_build_psymtabs_hard (objfile, mainline);
|
dwarf2_build_psymtabs_hard (objfile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1490,7 +1490,7 @@ dwarf2_build_psymtabs (struct objfile *objfile, int mainline)
|
||||||
.debug_pubnames and .debug_aranges sections. */
|
.debug_pubnames and .debug_aranges sections. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dwarf2_build_psymtabs_easy (struct objfile *objfile, int mainline)
|
dwarf2_build_psymtabs_easy (struct objfile *objfile)
|
||||||
{
|
{
|
||||||
bfd *abfd = objfile->obfd;
|
bfd *abfd = objfile->obfd;
|
||||||
char *aranges_buffer, *pubnames_buffer;
|
char *aranges_buffer, *pubnames_buffer;
|
||||||
|
@ -2075,7 +2075,7 @@ build_type_psymtabs (struct objfile *objfile)
|
||||||
.debug_info and .debug_abbrev sections. */
|
.debug_info and .debug_abbrev sections. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dwarf2_build_psymtabs_hard (struct objfile *objfile, int mainline)
|
dwarf2_build_psymtabs_hard (struct objfile *objfile)
|
||||||
{
|
{
|
||||||
/* Instead of reading this into a big buffer, we should probably use
|
/* Instead of reading this into a big buffer, we should probably use
|
||||||
mmap() on architectures that support it. (FIXME) */
|
mmap() on architectures that support it. (FIXME) */
|
||||||
|
|
|
@ -736,7 +736,6 @@ elf_symfile_read (struct objfile *objfile, int mainline)
|
||||||
/* FIXME should probably warn about a stab section without a stabstr. */
|
/* FIXME should probably warn about a stab section without a stabstr. */
|
||||||
if (str_sect)
|
if (str_sect)
|
||||||
elfstab_build_psymtabs (objfile,
|
elfstab_build_psymtabs (objfile,
|
||||||
mainline,
|
|
||||||
ei.stabsect,
|
ei.stabsect,
|
||||||
str_sect->filepos,
|
str_sect->filepos,
|
||||||
bfd_section_size (abfd, str_sect));
|
bfd_section_size (abfd, str_sect));
|
||||||
|
|
|
@ -340,7 +340,7 @@ som_symfile_read (struct objfile *objfile, int mainline)
|
||||||
|
|
||||||
/* Now read information from the stabs debug sections.
|
/* Now read information from the stabs debug sections.
|
||||||
This is emitted by gcc. */
|
This is emitted by gcc. */
|
||||||
stabsect_build_psymtabs (objfile, mainline,
|
stabsect_build_psymtabs (objfile,
|
||||||
"$GDB_SYMBOLS$", "$GDB_STRINGS$", "$TEXT$");
|
"$GDB_SYMBOLS$", "$GDB_STRINGS$", "$TEXT$");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -175,21 +175,18 @@ extern void process_one_symbol (int, int, CORE_ADDR, char *,
|
||||||
struct section_offsets *, struct objfile *);
|
struct section_offsets *, struct objfile *);
|
||||||
|
|
||||||
extern void elfstab_build_psymtabs (struct objfile *objfile,
|
extern void elfstab_build_psymtabs (struct objfile *objfile,
|
||||||
int mainline,
|
|
||||||
asection *stabsect,
|
asection *stabsect,
|
||||||
file_ptr stabstroffset,
|
file_ptr stabstroffset,
|
||||||
unsigned int stabstrsize);
|
unsigned int stabstrsize);
|
||||||
|
|
||||||
extern void coffstab_build_psymtabs
|
extern void coffstab_build_psymtabs
|
||||||
(struct objfile *objfile,
|
(struct objfile *objfile,
|
||||||
int mainline,
|
|
||||||
CORE_ADDR textaddr, unsigned int textsize,
|
CORE_ADDR textaddr, unsigned int textsize,
|
||||||
struct stab_section_list *stabs,
|
struct stab_section_list *stabs,
|
||||||
file_ptr stabstroffset, unsigned int stabstrsize);
|
file_ptr stabstroffset, unsigned int stabstrsize);
|
||||||
|
|
||||||
extern void stabsect_build_psymtabs
|
extern void stabsect_build_psymtabs (struct objfile *objfile, char *stab_name,
|
||||||
(struct objfile *objfile,
|
char *stabstr_name, char *text_name);
|
||||||
int mainline, char *stab_name, char *stabstr_name, char *text_name);
|
|
||||||
|
|
||||||
extern void elfstab_offset_sections (struct objfile *,
|
extern void elfstab_offset_sections (struct objfile *,
|
||||||
struct partial_symtab *);
|
struct partial_symtab *);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue