[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Minor DDD bug.

From: Through Put
Subject: Minor DDD bug.
Date: Fri, 24 Nov 2000 18:57:52

When I start DDD, the green arrow indicating the current execution
position does not appear, but it should.

I have commands in my .gdbinit file that load my program, set a
breakpoint at main, and run.  So, basically, when I start DDD,
gdb will load my program and run until main.  It correctly stops
my program at main, but DDD doesn't show the '->'.  If I type "up"
then "down", the arrow appears...

This is a minor annoyance, but it confuses developers on my team.
They always type "run" when DDD loads because they don't know their
program is already running (because they don't see the green arrow).

Anyways, to re-produce this, compile the following program into a.out:

 #include <stdio.h>
 int main(void) {
   puts("Hello World\n");

Then, create the following .gdbinit:

 file a.out
 b main

Then, run DDD:

 % ddd --gdb a.out

When DDD appears, you won't see the green arrow, even though the
program is running...  Type "up" then "down" and the arrow will
appear...  This bug has been in all the DDD versions I've tried.

Just in case you need it, here's my gdb & DDD configurations:

GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it
under certain conditions.  Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.  This GDB was configured as "i686-pc-linux-gnu".

GNU DDD 3.2.91 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universit├Ąt Braunschweig, Germany.
Copyright (C) 1999-2000 Universit├Ąt Passau, Germany.

Compiled with GCC 2.95.1 19990816 (release), GNU libc 2.1
Requires X11R6, Xt11R6, Motif 2.1.30 (Motif Version 2.1.30)
Includes XPM 3.4.11, Athena Panner, App defaults, DDD core
Built 2000-11-22 by XXX <address@hidden>.

Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]