aboutsummaryrefslogtreecommitdiff
path: root/ld/pdb.h
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2022-12-09 01:52:37 +0000
committerAlan Modra <amodra@gmail.com>2022-12-23 20:45:30 +1030
commit817840046a160b2cccadee41d17db0af1912e070 (patch)
treefc0a4901e1359bf97cab35884fc99f4147e94224 /ld/pdb.h
parentfca9096a94ff6b3dbf0bf71fc402b3b37184a235 (diff)
downloadgdb-817840046a160b2cccadee41d17db0af1912e070.zip
gdb-817840046a160b2cccadee41d17db0af1912e070.tar.gz
gdb-817840046a160b2cccadee41d17db0af1912e070.tar.bz2
ld: Parse LF_UDT_SRC_LINE records when creating PDB file
Diffstat (limited to 'ld/pdb.h')
-rw-r--r--ld/pdb.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/ld/pdb.h b/ld/pdb.h
index 7d87a3f..668f3e1 100644
--- a/ld/pdb.h
+++ b/ld/pdb.h
@@ -59,6 +59,8 @@
#define LF_BUILDINFO 0x1603
#define LF_SUBSTR_LIST 0x1604
#define LF_STRING_ID 0x1605
+#define LF_UDT_SRC_LINE 0x1606
+#define LF_UDT_MOD_SRC_LINE 0x1607
#define LF_CHAR 0x8000
#define LF_SHORT 0x8001
@@ -517,6 +519,27 @@ struct lf_mfunc_id
char name[];
} ATTRIBUTE_PACKED;
+/* lfUdtSrcLine in cvinfo.h */
+struct lf_udt_src_line
+{
+ uint16_t size;
+ uint16_t kind;
+ uint32_t type;
+ uint32_t source_file_type;
+ uint32_t line_no;
+} ATTRIBUTE_PACKED;
+
+/* lfUdtModSrcLine in cvinfo.h */
+struct lf_udt_mod_src_line
+{
+ uint16_t size;
+ uint16_t kind;
+ uint32_t type;
+ uint32_t source_file_string;
+ uint32_t line_no;
+ uint16_t module_no;
+} ATTRIBUTE_PACKED;
+
extern bool create_pdb_file (bfd *, const char *, const unsigned char *);
#endif