www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4F5E1DD8.2090706@cs.utoronto.ca> |
Date: | Mon, 12 Mar 2012 12:01:28 -0400 |
From: | Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
MIME-Version: | 1.0 |
To: | Michel Bardiaux <MBardiaux AT mediaxim DOT be>, |
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> | |
Subject: | Re: Unfolding the stack |
References: | <6BFA9AF2C7556E42AFF3F187ECAB07B802DAFBAB AT bespdc01 DOT mediaxim DOT local> <4F5DE96B DOT 3080105 AT cs DOT utoronto DOT ca> <6BFA9AF2C7556E42AFF3F187ECAB07B802DAFBF2 AT bespdc01 DOT mediaxim DOT local> |
In-Reply-To: | <6BFA9AF2C7556E42AFF3F187ECAB07B802DAFBF2@bespdc01.mediaxim.local> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 12/03/2012 11:20 AM, Michel Bardiaux wrote: >> Alternatively, you could compile with -g and try to traverse the debug > info tables gdb uses to work> around everything nasty gcc does, but > there's no clean API there that I know of. > > Since cygwin_stackdump does not dare to tread there... Pretty much. I would just note that this is not cygwin-specific. Nobody but gdb dares as far as I know. >> Out of curiosity, what is your library currently using to generate backtraces? >> >> Well you just snipped it: pipe/fork/dup to catch the stderr of cygwin_stackdump called in the forked process. I meant in the original, non-ported version of the library which you are porting to cygwin. Presumably it did not call cygwin_stackdump. >> There's a backtrace facility in glibc (man backtrace), but it's got a long list of caveats as well, including death by -fomit-frame-pointer (it doesn't use any debug/unwind info emitted by the compiler). > In what package? I have cygwin basics + gcc installed, and no backtrace in any .h. This was in the context of my previous question (see above). Cygwin uses newlib, not glibc. Ryan -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |