Mail Archives: djgpp/2003/01/21/07:30:13
From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: several questions (symify, dynamic labels, cpu clock)
|
Date: | 21 Jan 2003 12:25:04 GMT
|
Organization: | Aachen University of Technology (RWTH)
|
Lines: | 31
|
Message-ID: | <b0je70$5ui$1@nets3.rz.RWTH-Aachen.DE>
|
References: | <b0ff15$lql$1 AT news DOT online DOT de>
|
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de
|
X-Trace: | nets3.rz.RWTH-Aachen.DE 1043151904 6098 137.226.32.75 (21 Jan 2003 12:25:04 GMT)
|
X-Complaints-To: | abuse AT rwth-aachen DOT de
|
NNTP-Posting-Date: | 21 Jan 2003 12:25:04 GMT
|
Originator: | broeker@
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Lars Hansen <lars DOT o DOT hansen AT gmx DOT de> wrote:
> 1. when running symify on a crashed program that was compiled with
> -g without -s I "get" the last called functions. Next to them are
> numbers. Are these supposed to be the source code line number where
> the C "instruction" is that was last executed before the crash?
No. They're offsets from the start of that function, as should be
somewhat self-explaining by the way the written:
_functionname+0x1234f7
If you don't get filenames and line numbers, chances are your version
of GCC is relatively recent, so the old "symify" doesn't understand
its debug information format any more. Use bsdsymify instead of
symify, then, as the README for your GCC would have told you to.
> 2. how can I get the address of a dynamic label which is in a
> function I am not in?
Don't worry --- it wouldn't be useful for anything, even if you could.
Dynamic labels are not meant as a substitute for longjmp() or plain
function calls.
> 3. is CLOCKS_PER_SEC the clock speed of the cpu, so for example
> 1,533,000,000 on an AthlonXP 1800+ ?
RTFM. Or a C textbook.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -