|
From: <sv...@va...> - 2015-02-23 13:59:05
|
Author: sewardj
Date: Mon Feb 23 13:58:55 2015
New Revision: 14953
Log:
Stop gcc -Og complaining (incorrectly) about filessize being used
uninitialised. No functional change.
Modified:
trunk/coregrind/m_debuginfo/readpdb.c
Modified: trunk/coregrind/m_debuginfo/readpdb.c
==============================================================================
--- trunk/coregrind/m_debuginfo/readpdb.c (original)
+++ trunk/coregrind/m_debuginfo/readpdb.c Mon Feb 23 13:58:55 2015
@@ -1915,13 +1915,12 @@
/* establish filesimage and filessize. These are only needed for
reading linetab2 tables, as far as I can deduce from the Wine
sources. */
- char* filesimage;
- DWORD filessize;
- if (!(filesimage = read_string_table(pdb))) {
- VG_(umsg)("LOAD_PDB_DEBUGINFO: pdb_dump: string table not found\n");
- }
- else {
+ DWORD filessize = 0;
+ char* filesimage = read_string_table(pdb);
+ if (filesimage) {
filessize = *(const DWORD*)(filesimage + 8);
+ } else {
+ VG_(umsg)("LOAD_PDB_DEBUGINFO: pdb_dump: string table not found\n");
}
/* Since we just use the FPO data without reformatting, at least
@@ -2190,7 +2189,7 @@
* the line number information, and it's not clear yet when
* to call for linetab2...
*/
- if(0) VG_(printf)("Reading lines for %s\n", file_name );
+ if (0) VG_(printf)("Reading lines for %s\n", file_name );
n_line2s_read
+= codeview_dump_linetab2(
di, pe_avma, sectp_avma,
|