bug-ddd
[Top][All Lists]
Advanced

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

Finish button does not move cursor in source window


From: Pierre Sarrazin
Subject: Finish button does not move cursor in source window
Date: Tue, 28 May 2002 14:53:01 -0400
User-agent: Mutt/1.2.5.1i

ddd --configuration

GNU DDD 3.3.1 (i386-redhat-linux-gnu)
Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.
Copyright (C) 1999-2001 Universität Passau, Germany.

Compiled with GCC 2.95.3 20010315 (release), GNU libc 2.1
Requires X11R6, Xt11R6, Motif 1.2 (GNU/LessTif Version 1.2 Release 0.93.18)
Includes XPM 3.4.11, Athena Panner, DDD core
Built 2002-05-24 by Pierre Sarrazin <...>.

----------------------------------------------------------------------
gdb --version

GNU gdb Red Hat Linux (5.1-1)

----------------------------------------------------------------------
BEHAVIOR

The Finish button appears to do the "finish" action, but the cursor
in the source view is not moved to the appropriate source line.

Scenario: put a breakpoint on the first line of main() in the
following program, then click Run, Step, Finish.


#include <stdio.h>

void
f(int n)
{
        printf("This is f(%d)\n", n);
}

int
uninteresting()
{
        printf("This is uninteresting()\n");
        return 42;
}

int
main()
{
        f(uninteresting());
        printf("End\n");
        return 0;
}

----------------------------------------------------------------------
LOG

<- "(gdb) "
-> "run\n"
<- "Starting program: /home/sarrazip/cvs-tronc/debug-fr/app/cxApiTest/src/a.out 
--aligne --fr dutexte.txt --en sometext.txt --debug\n"
<- "Error in re-setting breakpoint 1:\n"
   "No source file named ../../../../app/cxApiTest/src/aligne.cpp.\n"
<- "Error in re-setting breakpoint 3:\n"
   "No source file named ../../../../app/cxApiTest/src/analyse.cpp.\n"
<- "Error in re-setting breakpoint 1:\n"
   "No source file named ../../../../app/cxApiTest/src/aligne.cpp.\n"
<- "Error in re-setting breakpoint 3:\n"
   "No source file named ../../../../app/cxApiTest/src/analyse.cpp.\n"
<- "\n"
<- "Breakpoint 4, main () at prog.c:19\n"
<- 
"\032\032/home/sarrazip/cvs-tronc/debug-fr/app/cxApiTest/src/prog.c:19:158:beg:0x804842a\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep n   0x08053e61 
../../../../app/cxApiTest/src/aligne.cpp:122\n"
   "3   breakpoint     keep n   0x08050b2c 
../../../../app/cxApiTest/src/analyse.cpp:888\n"
   "4   breakpoint     keep y   0x0804842a in main at prog.c:19\n"
   "\tbreakpoint already hit 1 time\n"
<- "(gdb) "
-> "step\n"
<- "uninteresting () at prog.c:12\n"
   
"\032\032/home/sarrazip/cvs-tronc/debug-fr/app/cxApiTest/src/prog.c:12:92:beg:0x8048406\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep n   0x08053e61 
../../../../app/cxApiTest/src/aligne.cpp:122\n"
   "3   breakpoint     keep n   0x08050b2c 
../../../../app/cxApiTest/src/analyse.cpp:888\n"
   "4   breakpoint     keep y   0x0804842a in main at prog.c:19\n"
   "\tbreakpoint already hit 1 time\n"
<- "(gdb) "
-> "finish\n"
<- "Run till exit from #0  uninteresting () at prog.c:12\n"
   "This is uninteresting()\n"
   "0x08048432 in main () at prog.c:19\n"
   
"\032\032/home/sarrazip/cvs-tronc/debug-fr/app/cxApiTest/src/prog.c:19:158:beg:0x8048432\n"
   "Value returned is $3 = 42\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
<- "1   breakpoint     keep n   0x08053e61 
../../../../app/cxApiTest/src/aligne.cpp:122\n"
   "3   breakpoint     keep n   0x08050b2c 
../../../../app/cxApiTest/src/analyse.cpp:888\n"
   "4   breakpoint     keep y   0x0804842a in main at prog.c:19\n"
   "\tbreakpoint already hit 1 time\n"
   "(gdb) "


-- 
Pierre Sarrazin <sarrazipATsympaticoDOTca>



reply via email to

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