From: Joerg Bruehe <joerg@sql.de>
To: axp-list@redhat.com
Subject: Re: Floating point on alpha
Date: Tue, 02 Jul 2002 16:22:40 +0200 [thread overview]
Message-ID: <3D21B730.839AEE2@sql.de> (raw)
In-Reply-To: 200207021603.09920.ineiti@gmx.net
Hi!
Linus Gasser wrote:
>
> Hi,
> just had a look at the documentation, and found the following:
>
> >>
> Like many static checkers, Splint detects instances where the value of a
> location is used before it is defined. This analysis is done at the
> procedural level. If there is a path through the procedure that uses a local
> variable before it is defined, a use before definition error is reported.
> The usedef flag controls use before definition checking.
> <<
>
> That means that if I call a function with a non-initialised double it won't be
> detected. But it should.
IMO, you mis-interpret the docu:
Sure, "splint" will not detect that the current function was called
with a non-initialised double,
but it will (hopefully) detect that the current function _is_calling_
some other with a non-initialised double, and that is the point of
error which needs to be corrected.
> Hmm, I gotta try that gdb once again. Trouble is: if I run it on noteedit, it
> crashes in a library (libnoteedit.so.1), and I don't get gdb to read the
> symbol-table. OK, at least I get the function-name where it crashes, but not
> the line. And always putting cout << x << endl; in the code to see where it
> crashes is not my idea of debugging. Any better ideas?
Check the point of calling, that is where the garbage parameter
is given.
HTH,
Joerg Bruehe
P.S.: And please, no top-post with full-quote in the future.
--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
(speaking only for himself)
mailto: joerg@sql.de
next prev parent reply other threads:[~2002-07-02 14:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-02 12:10 Floating point on alpha Linus Gasser
2002-07-02 12:33 ` Doug Trainor
2002-07-02 14:03 ` Linus Gasser
2002-07-02 14:22 ` Joerg Bruehe [this message]
2002-07-02 13:01 ` Christian Iseli
-- strict thread matches above, loose matches on Subject: below --
2002-07-02 13:10 Peter Petrakis
2002-07-08 22:54 Donsbach, Jeff
2002-07-09 2:42 ` Alvin Starr
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox