[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Steping debugger - printf order
From: |
Rick Riolo |
Subject: |
Re: Steping debugger - printf order |
Date: |
Sun, 20 Aug 2000 09:19:27 -0400 (EDT) |
this doesn't get to your main question, but it may
be useful in other contexts (or maybe this one):
i believe that if you use
fprintf(stderr,"...",...);
instead of just printf, the output will
a) be immediately flushed, so one doesn't lose
some output in the printf buffer when a crash occurs
b) it will therefore appear in the order
in which the fprintf's are exectued.
- r
Rick Riolo address@hidden
Center for Study of Complex Systems (CSCS)
4477 Randall Lab
University of Michigan Ann Arbor MI 48109-1120
Phone: 734 763 3323 Fax: 734 763 9267
http://www.pscs.umich.edu/PEOPLE/rlr-home.html
On Sun, 13 Aug 2000, Doug Donalson wrote:
> Date: Sun, 13 Aug 2000 13:43:44 -0700
> From: Doug Donalson <address@hidden>
> Reply-To: address@hidden
> To: address@hidden
> Subject: Steping debugger
>
> Is there a version of GDB for Linux that allows you to step through code?
> (Better yet, one that works under Cygnus?) I know a long time ago I had
> one. I have some bizare recursion in my output and I have no idea whether
> it is real or caused by printf's not being printed in the identical order to
> the screen in which they are sent. It is just too hard to debug this sort
> of thing with printfs and, although the code seems to be working, I will not
> be comfortable until I understand what is causing this.
>
> Oh, for the use of C++ and object center (if object center still exists.)
>
> Cheers,
>
> D4
>
>
> *********************************************************************
> * Dr. Doug Donalson Office: (805) 893-2962
> * Ecology, Evolution, Home: (805) 961-4447
> * and Marine Biology email address@hidden
> * UC Santa Barbara
> * Santa Barbara Ca. 93106
> *********************************************************************
> *
> * The most exciting phrase to hear in science, the one that
> * heralds new discoveries, is not "EUREKA" (I have found it) but
> * "That's funny ...?"
> *
> * Isaac Asimov
> *
> *********************************************************************
>
>
>
>
> ==================================
> Swarm-Support is for discussion of the technical details of the day
> to day usage of Swarm. For list administration needs (esp.
> [un]subscribing), please send a message to <address@hidden>
> with "help" in the body of the message.
>
>
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.