From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28852 invoked by alias); 21 Sep 2005 13:23:06 -0000 Mailing-List: contact insight-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-prs-owner@sourceware.org Received: (qmail 28813 invoked by uid 71); 21 Sep 2005 13:23:02 -0000 Resent-Date: 21 Sep 2005 13:23:02 -0000 Resent-Message-ID: <20050921132302.28811.qmail@sourceware.org> Resent-From: insight-gnats@sources.redhat.com (GNATS Filer) Resent-To: nobody@sources.redhat.com Resent-Cc: insight-prs@sources.redhat.com, vaclavpe@seznam.cz, peter.cabaj@st.com Resent-Reply-To: insight-gnats@sources.redhat.com, vaclav.peroutka@st.com Received: (qmail 26039 invoked by uid 48); 21 Sep 2005 13:16:45 -0000 Message-Id: <20050921131645.26038.qmail@sourceware.org> Date: Wed, 21 Sep 2005 13:23:00 -0000 From: vaclav.peroutka@st.com Reply-To: vaclav.peroutka@st.com To: insight-gnats@sources.redhat.com Cc: vaclavpe@seznam.cz, peter.cabaj@st.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: vaclavpe@seznam.cz, peter.cabaj@st.com Subject: insight/273: bad behaviour od STEP, NEXT buttons, empty for() loop crashes X-SW-Source: 2005-q3/txt/msg00022.txt.bz2 List-Id: >Number: 273 >Category: insight >Synopsis: bad behaviour od STEP, NEXT buttons, empty for() loop crashes >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Sep 21 13:23:01 UTC 2005 >Closed-Date: >Last-Modified: >Originator: vaclav peroutka >Release: insight/gdb 6.0 >Organization: >Environment: winXP, cygwin, arm-elf distribution got from www.gnuwin.org >Description: When running delay loop with empty for() cycle: for (i=0; i<0x3ffff; i++); STEP or NEXT button will freeze the communication with the board through wiggler. If I use following loop: i = 0; while (i < 0xfffff) { i++; } or put something in brackets in for() loop it works ok. But STEP button has the same behaviour as NEXT button. It should "skip" the loop, shouldn't it? If I am inside the loop pressing the FINISH button runs program without finishing just the loop. But it continues further. >How-To-Repeat: 1. connect Wiggler to parallel port and the target board 2. run ocdremote.exe 3. run arm-elf-insight 4. open the elf program with for() loop 5. connect to Remote/TCP localhost:8888 6. download the program 7. set breakpoint in front of for() loop 8. run 9. step 10. now it is not possible to stop it similarly it is possible to test behaviour of STEP/NEXT/FINISH buttons I don't attach C source code because it is processor dependant. But anybody can use the simplest flash LED code. >Fix: >Release-Note: >Audit-Trail: >Unformatted: