From: James Colannino <james@colannino.org>
To: linux-c-programming@vger.kernel.org
Subject: Re: Debugging
Date: Mon, 30 Jan 2006 11:13:25 -0800 [thread overview]
Message-ID: <43DE6555.7010806@colannino.org> (raw)
In-Reply-To: <20060129105131.6813f695.leslie.polzer@gmx.net>
Patrick Leslie Polzer wrote:
>First, define "does not function properly". Does it dump code, is there a
>logic error?
>
>
Sorry; I should have explained myself more clearly. It's a logic error
(I think.) What's weird is that I ran strace to compare the various
system calls used with the un-optimized version vs. the optimized
version, and they were both the same up to the point where the optimized
one failed. Of course that isn't a reflection of the actual machine
code, so I guess that wouldn't necessarily help me out too much.
>Then go about finding the offending line(s) of code.
>Watch out for obscure tricks, side-effects, wild pointers and illegal casts.
>Compile with -Wall and, to enforce your discipline, treat every warning as
>-Werror.
>
>
Without -Wall, I get no errors (I always do my best to get rid of
warnings.) I'll try it with -Wall though and see what happens.
James
--
My blog: http://www.crazydrclaw.com/
My homepage: http://james.colannino.org/
"If Carpenters made houses the way programmers design programs, the first woodpecker to come along would destroy all of civilization." --Computer Proverb
next prev parent reply other threads:[~2006-01-30 19:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-29 6:21 Debugging James Colannino
2006-01-29 16:21 ` Debugging Steve Graegert
2006-01-29 18:14 ` Debugging Glynn Clements
2006-01-30 19:09 ` Debugging James Colannino
[not found] ` <20060129105131.6813f695.leslie.polzer@gmx.net>
2006-01-30 19:13 ` James Colannino [this message]
2006-01-30 19:21 ` Debugging James Colannino
-- strict thread matches above, loose matches on Subject: below --
2005-09-09 12:40 Debugging Lares Moreau
2005-09-09 15:30 ` Debugging Randy.Dunlap
2005-05-14 0:05 Debugging Scott Becker
2005-05-17 2:11 ` Debugging Hollis Blanchard
2005-05-18 15:59 ` Debugging Scott Becker
2005-08-29 15:12 ` Debugging pjones
[not found] <09B04A55822EFF4DA48D2E0BB2941D4A15C51F@wardrive.citadelcomputer.com.au>
2003-10-19 23:26 ` Debugging techmail
2003-10-19 22:45 Debugging Daniel Chemko
2003-10-19 22:24 Debugging techmail
2003-10-09 7:23 debugging Ingo Flaschberger
2003-03-11 11:05 bug in asm-ppc/div64.h Bastien Nocera
2003-03-11 14:21 ` Debugging Giuliano Pochini
2003-03-11 19:28 ` Debugging Olaf Hering
2003-03-13 8:28 ` Debugging Giuliano Pochini
2003-03-13 8:52 ` Debugging Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43DE6555.7010806@colannino.org \
--to=james@colannino.org \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.