From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23862 invoked by alias); 4 Dec 2001 08:03:04 -0000 Mailing-List: contact insight-prs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-prs-owner@sources.redhat.com Received: (qmail 23827 invoked by uid 71); 4 Dec 2001 08:03:01 -0000 Resent-Date: 4 Dec 2001 08:03:01 -0000 Resent-Message-ID: <20011204080301.23826.qmail@sources.redhat.com> Resent-From: insight-gnats@sourceware.cygnus.com (GNATS Filer) Resent-To: nobody@sourceware.cygnus.com Resent-Cc: insight-prs@sourceware.cygnus.com Resent-Reply-To: insight-gnats@sourceware.cygnus.com, oschiller@foni.net Message-Id:<20011204080138.20246.qmail@sources.redhat.com> Date: Fri, 26 Oct 2001 09:23:00 -0000 From: oschiller@foni.net Reply-To: oschiller@foni.net To: insight-gnats@sourceware.cygnus.com X-Send-Pr-Version:gnatsweb-2.9.0 (1.6) Subject: insight/116: assembler instructions do not match the associated source lines X-SW-Source: 2001-q4/txt/msg00003.txt.bz2 List-Id: >Number: 116 >Category: insight >Synopsis: assembler instructions do not match the associated source lines >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Dec 04 00:03:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: oschi >Release: unknown-1.0 >Organization: >Environment: cygwin 1.3.3 gcc 3.0, binutils 2.11, newlib 1.9.0, insight 5.1 configured for arm-unknown-elf >Description: When stepping into a library function (e.g. printf()), the assembler instructions don't match the associated source lines. An example is shown below: 51 { - 0xb0c4 : mov r12, sp - 0xb0c8 : stmdb sp!, {r0, r1, r2, r3} - 0xb0cc : stmdb sp!, {r11, r12, lr, pc} - 0xb0e0 : sub r11, r12, #20 ; 0x14 52 int ret; 53 va_list ap; 54 55 va_start (ap, fmt); 56 _stdout_r (_REENT)->_data = _REENT; - 0xb0d0 : ldr r2, [pc, #32] ; 0xb0f8 - 0xb0d4 : ldr r3, [r2] - 0xb0d8 : ldr r1, [r3, #8] - 0xb0dc : str r3, [r1, #84] 57 ret = vfprintf (_stdout_r (_REENT), fmt, ap); - 0xb0e4 : ldr r0, [r3, #8] - 0xb0e8 : ldr r1, [r11, #4] - 0xb0ec : add r2, r11, #8 ; 0x8 - 0xb0f0 : bl 0xbd48 - 0xb0f4 : ldmdb r11, {r11, sp, pc} - 0xb0f8 : andeq r2, r1, r0, lsr #9 I am not quite sure whether this is a debugger problem. I've tried with gcc 3.0.2 as well but this didn't solve the problem. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: