forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for external debug info. * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>. (S_ISLNK): Define if not defined. (xstrnlen): Define if strnlen is not available. (b_elf_note): Define type. (NT_GNU_BUILD_ID): Define macro. (elf_crc32, elf_crc32_file): New static functions. (elf_is_symlink, elf_readlink): New static functions. (elf_open_debugfile_by_buildid): New static function. (elf_try_debugfile): New static function. (elf_find_debugfile_by_debuglink): New static function. (elf_open_debugfile_by_debuglink): New static function. (elf_add): Add filename and debuginfo parameters. Adjust all callers. Look for external debug info notes, and try to fetch debug info from external file. (struct phdr_data): Add exe_filename field. (phdr_callback): Pass filename to elf_add. (backtrace_initialize): Add filename parameter. * internal.h (backtrace_initialize): Add filename parameter. * fileline.c (fileline_initialize): Pass filename to backtrace_initialize. * pecoff.c (fileline_initialize): Add unused filename parameter. * unknown.c (fileline_initialize): Likewise. * xcoff.c (fileline_initialize): Likewise. * configure.ac: Check for objcopy --add-gnu-debuglink. * Makefile.am (dtest): New test target. * configure, Makefile.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253032 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
ian
committed
Sep 20, 2017
1 parent
e6b5fa1
commit b919941
Showing
11 changed files
with
705 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
2017-09-20 Ian Lance Taylor <[email protected]> | ||
Denis Khalikov <[email protected]> | ||
|
||
PR sanitizer/77631 | ||
Support for external debug info. | ||
* elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>. | ||
(S_ISLNK): Define if not defined. | ||
(xstrnlen): Define if strnlen is not available. | ||
(b_elf_note): Define type. | ||
(NT_GNU_BUILD_ID): Define macro. | ||
(elf_crc32, elf_crc32_file): New static functions. | ||
(elf_is_symlink, elf_readlink): New static functions. | ||
(elf_open_debugfile_by_buildid): New static function. | ||
(elf_try_debugfile): New static function. | ||
(elf_find_debugfile_by_debuglink): New static function. | ||
(elf_open_debugfile_by_debuglink): New static function. | ||
(elf_add): Add filename and debuginfo parameters. Adjust all | ||
callers. Look for external debug info notes, and try to fetch | ||
debug info from external file. | ||
(struct phdr_data): Add exe_filename field. | ||
(phdr_callback): Pass filename to elf_add. | ||
(backtrace_initialize): Add filename parameter. | ||
* internal.h (backtrace_initialize): Add filename parameter. | ||
* fileline.c (fileline_initialize): Pass filename to | ||
backtrace_initialize. | ||
* pecoff.c (fileline_initialize): Add unused filename parameter. | ||
* unknown.c (fileline_initialize): Likewise. | ||
* xcoff.c (fileline_initialize): Likewise. | ||
* configure.ac: Check for objcopy --add-gnu-debuglink. | ||
* Makefile.am (dtest): New test target. | ||
* configure, Makefile.in: Rebuild. | ||
|
||
2017-09-12 Steve Ellcey <[email protected]> | ||
|
||
PR other/81096 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.