Re: Stack traces and sections in PE/COFF

2009-02-02 Thread Ian Lance Taylor
Piotr Wyderski writes: > The PE header walker is able to > dump PE sections, > but they have strange, numeric names, e.g.: > > sec[5]: name = /4 That strange numeric name is used when the section name is more than 8 characters long. The value after the '/' is an offset into the string table. I

Stack traces and sections in PE/COFF

2009-02-02 Thread Piotr Wyderski
I would like to add stack traces to my program (Cygwin/MinGW, Windows XP). I've already implemented a stack walker, but there is an open problem with symbol name/line lookup. The compiler (GCC 4.4-trunk) emits DWARF2-compatible debug information, but I don't know how to reach the appropriate sectio