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 98f6eec820bb9a0ecef5e289c2eb4ac68daf27ab..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.
@@
-733,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
;
+
std::string debugfile = find_separate_debug_file_by_buildid (objfile)
;
- 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 ()
)
{
{
- gdb_bfd_ref_ptr abfd (symfile_bfd_open (debugfile));
+ gdb_bfd_ref_ptr abfd (symfile_bfd_open (debugfile
.c_str ()
));
- symbol_file_add_separate (abfd.get (), debugfile
, symfile_flags
,
- objfile);
+ symbol_file_add_separate (abfd.get (), debugfile
.c_str ()
,
+
symfile_flags,
objfile);
}
}
}
}
@@
-931,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:
@@
-967,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.024125 seconds
and
4
git commands to generate.