This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Stack traces and sections


On Mon, Feb 02, 2009 at 04:24:11PM +0100, Piotr Wyderski wrote:
>I would like to add stack traces to my program. 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 sections (especially
>".debug_info")
>within the executable. The PE header walker is able to dump PE sections, but
>they have strange, numeric names, e.g.:
>
>sec[0]: name = .text
>sec[1]: name = .data
>sec[2]: name = .rdata
>sec[3]: name = .bss
>sec[4]: name = .idata
>sec[5]: name = /4
>sec[6]: name = /19
>sec[7]: name = /35
>sec[8]: name = /47
>sec[9]: name = /61
>sec[10]: name = /73
>sec[11]: name = /86
>sec[12]: name = /97
>sec[13]: name = /108
>
>On the other hand, the DWARF sections are available in the file -- a hexdump
>viewer can locate them, as well as objdump. Could somebody please tell me
>what should I do in order to get to the DWARF sections from this point?
>Any documentation will be appreciated.

Sorry but this isn't the right mailing list for this question.

This mailing list is for the discussion of development of the Cygwin DLL and
utilities.

This actually isn't even a Cygwin-specific question, AFAICT.  You'd
probably be better served in a Microsoft-specific mailing list.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]