summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/bfd/libpei.h
diff options
context:
space:
mode:
authorJoshua Lang <joshualang@google.com>2016-12-14 23:05:00 -0800
committerJoshua Lang <joshualang@google.com>2017-01-31 15:41:47 -0800
commit9bf6cbf6dd88777719c5757922aff0190ec46539 (patch)
treea6fb4e5541581d7bf6925b298bcb3f4910836bc4 /binutils-2.25/bfd/libpei.h
parent249bab53c3518fccd432baf1447422b25d884732 (diff)
downloadtoolchain_binutils-9bf6cbf6dd88777719c5757922aff0190ec46539.tar.gz
toolchain_binutils-9bf6cbf6dd88777719c5757922aff0190ec46539.tar.bz2
toolchain_binutils-9bf6cbf6dd88777719c5757922aff0190ec46539.zip
Set CodeView pdb path/name to base name
The CodeView pdb path/name field is empty leading windows minidumps to have empty module paths for the binary. This patch sets the path to the base name of the binary. Bug: 33668347 Change-Id: I4138998239b07b54cc36dc2d2e3484c4b63f5435
Diffstat (limited to 'binutils-2.25/bfd/libpei.h')
-rw-r--r--binutils-2.25/bfd/libpei.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils-2.25/bfd/libpei.h b/binutils-2.25/bfd/libpei.h
index ffcafded..10090f74 100644
--- a/binutils-2.25/bfd/libpei.h
+++ b/binutils-2.25/bfd/libpei.h
@@ -238,6 +238,7 @@
#define _bfd_XXi_swap_debugdir_in _bfd_pex64i_swap_debugdir_in
#define _bfd_XXi_swap_debugdir_out _bfd_pex64i_swap_debugdir_out
#define _bfd_XXi_write_codeview_record _bfd_pex64i_write_codeview_record
+#define _bfd_XXi_get_codeview_pdb_name _bfd_pex64i_get_codeview_pdb_name
#elif defined COFF_WITH_pep
@@ -272,6 +273,7 @@
#define _bfd_XXi_swap_debugdir_in _bfd_pepi_swap_debugdir_in
#define _bfd_XXi_swap_debugdir_out _bfd_pepi_swap_debugdir_out
#define _bfd_XXi_write_codeview_record _bfd_pepi_write_codeview_record
+#define _bfd_XXi_get_codeview_pdb_name _bfd_pepi_get_codeview_pdb_name
#else /* !COFF_WITH_pep */
@@ -306,6 +308,7 @@
#define _bfd_XXi_swap_debugdir_in _bfd_pei_swap_debugdir_in
#define _bfd_XXi_swap_debugdir_out _bfd_pei_swap_debugdir_out
#define _bfd_XXi_write_codeview_record _bfd_pei_write_codeview_record
+#define _bfd_XXi_get_codeview_pdb_name _bfd_pei_get_codeview_pdb_name
#endif /* !COFF_WITH_pep */
@@ -351,6 +354,7 @@ bfd_boolean _bfd_XXi_final_link_postscript (bfd *, struct coff_final_link_info *
void _bfd_XXi_swap_debugdir_in (bfd *, void *, void *);
unsigned _bfd_XXi_swap_debugdir_out (bfd *, void *, void *);
unsigned _bfd_XXi_write_codeview_record (bfd *, file_ptr, CODEVIEW_INFO *);
+const char* _bfd_XXi_get_codeview_pdb_name (bfd *);
/* The following are needed only for ONE of pe or pei, but don't
otherwise vary; peicode.h fixes up ifdefs but we provide the