public inbox for insight-prs@sourceware.org
help / color / mirror / Atom feed
* insight/116: assembler instructions do not match the associated source lines
@ 2001-10-26 9:23 oschiller
0 siblings, 0 replies; 2+ messages in thread
From: oschiller @ 2001-10-26 9:23 UTC (permalink / raw)
To: insight-gnats
>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 <printf>: mov r12, sp
- 0xb0c8 <printf+4>: stmdb sp!, {r0, r1, r2, r3}
- 0xb0cc <printf+8>: stmdb sp!, {r11, r12, lr, pc}
- 0xb0e0 <printf+28>: 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 <printf+12>: ldr r2, [pc, #32] ; 0xb0f8 <printf+52>
- 0xb0d4 <printf+16>: ldr r3, [r2]
- 0xb0d8 <printf+20>: ldr r1, [r3, #8]
- 0xb0dc <printf+24>: str r3, [r1, #84]
57 ret = vfprintf (_stdout_r (_REENT), fmt, ap);
- 0xb0e4 <printf+32>: ldr r0, [r3, #8]
- 0xb0e8 <printf+36>: ldr r1, [r11, #4]
- 0xb0ec <printf+40>: add r2, r11, #8 ; 0x8
- 0xb0f0 <printf+44>: bl 0xbd48 <vfprintf>
- 0xb0f4 <printf+48>: ldmdb r11, {r11, sp, pc}
- 0xb0f8 <printf+52>: 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:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: insight/116: assembler instructions do not match the associated source lines
@ 2002-01-04 12:21 kseitz
0 siblings, 0 replies; 2+ messages in thread
From: kseitz @ 2002-01-04 12:21 UTC (permalink / raw)
To: insight-prs, kseitz, nobody, oschiller
Synopsis: assembler instructions do not match the associated source lines
Responsible-Changed-From-To: unassigned->kseitz
Responsible-Changed-By: kseitz
Responsible-Changed-When: Fri Jan 4 12:21:05 2002
Responsible-Changed-Why:
assign to self
State-Changed-From-To: open->closed
State-Changed-By: kseitz
State-Changed-When: Fri Jan 4 12:21:05 2002
State-Changed-Why:
not a bug -- see "Fix" below
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=116&database=insight
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-04 20:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-26 9:23 insight/116: assembler instructions do not match the associated source lines oschiller
2002-01-04 12:21 kseitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).