projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove "noisy" parameter from clear_complaints
[deliverable/binutils-gdb.git]
/
gdb
/
coffread.c
diff --git
a/gdb/coffread.c
b/gdb/coffread.c
index 728e4b698dfae36a68eb74057e6859f7e2900e06..f24ec0713a09007293d9d36c86e996691155f04e 100644
(file)
--- a/
gdb/coffread.c
+++ b/
gdb/coffread.c
@@
-1,5
+1,5
@@
/* Read coff symbol tables and convert to internal format, for GDB.
/* Read coff symbol tables and convert to internal format, for GDB.
- Copyright (C) 1987-201
7
Free Software Foundation, Inc.
+ Copyright (C) 1987-201
8
Free Software Foundation, Inc.
Contributed by David D. Johnson, Brown University (ddj@cs.brown.edu).
This file is part of GDB.
Contributed by David D. Johnson, Brown University (ddj@cs.brown.edu).
This file is part of GDB.
@@
-43,8
+43,6
@@
#include "psymtab.h"
#include "build-id.h"
#include "psymtab.h"
#include "build-id.h"
-extern void _initialize_coffread (void);
-
/* Key for COFF-associated data. */
static const struct objfile_data *coff_objfile_data_key;
/* Key for COFF-associated data. */
static const struct objfile_data *coff_objfile_data_key;
@@
-394,7
+392,9
@@
coff_start_symtab (struct objfile *objfile, const char *name)
NULL,
/* The start address is irrelevant, since we set
last_source_start_addr in coff_end_symtab. */
NULL,
/* The start address is irrelevant, since we set
last_source_start_addr in coff_end_symtab. */
- 0);
+ 0,
+ /* Let buildsym.c deduce the language for this symtab. */
+ language_unknown);
record_debugformat ("COFF");
}
record_debugformat ("COFF");
}
@@
-699,7
+699,8
@@
coff_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags)
}
}
}
}
- bfd_map_over_sections (abfd, coff_locate_sections, (void *) info);
+ if (!(objfile->flags & OBJF_READNEVER))
+ bfd_map_over_sections (abfd, coff_locate_sections, (void *) info);
if (info->stabsects)
{
if (info->stabsects)
{
@@
-732,20
+733,17
@@
coff_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags)
/* Try to add separate debug file if no symbols table found. */
if (!objfile_has_partial_symbols (objfile))
{
/* Try to add separate debug file if no symbols table found. */
if (!objfile_has_partial_symbols (objfile))
{
- char *debugfile;
-
- debugfile = find_separate_debug_file_by_buildid (objfile);
+ std::string debugfile = find_separate_debug_file_by_buildid (objfile);
- if (debugfile
== NULL
)
+ if (debugfile
.empty ()
)
debugfile = find_separate_debug_file_by_debuglink (objfile);
debugfile = find_separate_debug_file_by_debuglink (objfile);
- make_cleanup (xfree, debugfile);
- if (
debugfile
)
+ if (
!debugfile.empty ()
)
{
{
-
bfd *abfd = symfile_bfd_open (debugfile
);
+
gdb_bfd_ref_ptr abfd (symfile_bfd_open (debugfile.c_str ())
);
- make_cleanup_bfd_unref (abfd);
-
symbol_file_add_separate (abfd, debugfile,
symfile_flags, objfile);
+ symbol_file_add_separate (abfd.get (), debugfile.c_str (),
+
symfile_flags, objfile);
}
}
}
}
@@
-930,6
+928,7
@@
coff_symtab_read (minimal_symbol_reader &reader,
backtraces, so filter them out (from phdm@macqel.be). */
if (within_function)
break;
backtraces, so filter them out (from phdm@macqel.be). */
if (within_function)
break;
+ /* Fall through. */
case C_STAT:
case C_THUMBLABEL:
case C_THUMBSTAT:
case C_STAT:
case C_THUMBLABEL:
case C_THUMBSTAT:
@@
-966,7
+965,8
@@
coff_symtab_read (minimal_symbol_reader &reader,
/* At least on a 3b1, gcc generates swbeg and string labels
that look like this. Ignore them. */
break;
/* At least on a 3b1, gcc generates swbeg and string labels
that look like this. Ignore them. */
break;
- /* Fall in for static symbols that don't start with '.' */
+ /* For static symbols that don't start with '.'... */
+ /* Fall through. */
case C_THUMBEXT:
case C_THUMBEXTFUNC:
case C_EXT:
case C_THUMBEXT:
case C_THUMBEXTFUNC:
case C_EXT:
This page took
0.024994 seconds
and
4
git commands to generate.