<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Discussion</title><link href="https://sourceforge.net/p/tds2dbg/discussion/" rel="alternate"/><link href="https://sourceforge.net/p/tds2dbg/discussion/feed.atom" rel="self"/><id>https://sourceforge.net/p/tds2dbg/discussion/</id><updated>2019-07-23T19:18:35.358000Z</updated><subtitle>Recent posts to Discussion</subtitle><entry><title>Bugs in tds2pdb</title><link href="https://sourceforge.net/p/tds2dbg/discussion/1016055/thread/d7c8d94b0c/?limit=25#cad9" rel="alternate"/><published>2019-07-23T19:18:35.358000Z</published><updated>2019-07-23T19:18:35.358000Z</updated><author><name>Alex</name><uri>https://sourceforge.net/u/nevilad/</uri></author><id>https://sourceforge.net6a9a1d64a11475a9a9b25e2d90614c83952d9ae3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;tds2pdb has a wrong segMap structure definition:&lt;br/&gt;
struct CVssSegMapSegDesc {&lt;br/&gt;
...&lt;br/&gt;
   WORD offset;     /*&lt;em&gt; Offset of logical segment within physical segment.    !!&lt;br/&gt;
                        Always 0. &lt;/em&gt;/                                          !!&lt;br/&gt;
   WORD cbSeg;      ///&amp;lt; Size of segment.&lt;br/&gt;
These fields are defined as unsigned long (4 bytes) in Microsofts headers:&lt;br/&gt;
typedef struct OMFSegMapDesc&lt;br/&gt;
....&lt;br/&gt;
unsigned long   offset;&lt;br/&gt;
    unsigned long   cbSeg;&lt;br/&gt;
} OMFSegMapDesc;&lt;/p&gt;
&lt;p&gt;Another error is probably the result that the uploaded tds2pdb.exe was compiled with 2-byte structure field  alignment, that leads to wrong written name prefix in PROCSYM32:&lt;br/&gt;
typedef struct PROCSYM32 {&lt;br/&gt;
...&lt;br/&gt;
+36    CV_PROCFLAGS    flags;          - this field is 1 byte in size, but tds2dbg writes a 2-byte field&lt;br/&gt;
+37    unsigned char   name&lt;span&gt;[1]&lt;/span&gt;;        // Length-prefixed name&lt;br/&gt;
} PROCSYM32;&lt;br/&gt;
Thus name length is always zero and symbols are seen without names.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>