public inbox for insight-prs@sourceware.org
help / color / mirror / Atom feed
From: oschiller@foni.net
To: insight-gnats@sourceware.cygnus.com
Subject: insight/116: assembler instructions do not match the associated source lines
Date: Fri, 26 Oct 2001 09:23:00 -0000	[thread overview]
Message-ID: <20011204080138.20246.qmail@sources.redhat.com> (raw)


>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:


             reply	other threads:[~2001-12-04  8:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-26  9:23 oschiller [this message]
2002-01-04 12:21 kseitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011204080138.20246.qmail@sources.redhat.com \
    --to=oschiller@foni.net \
    --cc=insight-gnats@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).