Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jens-Christian Lache <lache@tu-harburg.de>
To: gdb@sources.redhat.com
Subject: Re: [Fwd: a small bug in the arm simulator]
Date: Fri, 23 Feb 2001 11:38:00 -0000	[thread overview]
Message-ID: <0102232035500V.28931@lab04> (raw)
In-Reply-To: <0102232029510U.28931@lab04>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2490 bytes --]

Hi!

I just compiled the latest snapshot

insight+dejagnu-weekly-CVS-20010220.tar

I compiled it both for target arm-elf and pc-linux.

Well, I could launch arm-elf-gdb from gdb, BUT just for a while.
At the moment gdb hangs when pressening the run button to start
arm-elf-gdb. This happens also for a helloWorld c-program.

The bug in the sim is still located in this snapshot.

Unfortunatly, I am to clumsy at the std. gdb console (a stable version without
insight is installed an my system) That´s why I am compiling a different gdb
frontend called "ddd" which is hopefully a little more stable. Lesstif just
compiled fine and soon ddd will be compiled too (I hope). Unfortunately I don´t
have  administrator right on my machine, that would make thinks faster.

I guess a will set a lot of breakpoints in the arm simulator code and see what
is happening.

jc

Am Fre, 23 Feb 2001 schrieben Sie:
> Hi Jens-Christian,
>  
> > Some time ago I have complained, that the arm simulator does not
> > know software traps.
> 
> Well it does - but not perfectly.
> 
> The reason is that the arm simulator is *not* a full arm architecture
> simulator.  It is just an instruction level simulator.  It is enough
> to allow the simulation of ordinary programs (that do not do complex
> I/O or make use of OS services) and the test programs for gcc, g++
> etc.
> 
> If you need a fully fledged, cycle accurate, architecture accurate
> simulator you should consider contacting ARM for their commercial
> product, or ... fixing the GNU simulator so that it is architecture
> accurate.
> 
> > - 0x201aa8c <interrupt_end_os_schedule_0+12>:         orr    r0, r0, #146
> > - 0x201aa90 <interrupt_end_os_schedule_0+16>:         msr    CPSR_fc, r0
> > 
> > The bug is located in 0x201aa90. It is not writing anything at all to
> > the cpsr.
> 
> Are you using the latest sources from the CVS repository ?  Quite a
> few bug fixes have been applied to the simulator over the last few
> months, so it is possible that this might have been fixed.
> 
> If it has not been fixed, then I would suggest you try debugging the
> simulator.  It is relatively straightforward.  In this case I would
> suggest that you look at the code in the file sim/arm/armsupp.c which
> contains most of the routines for handling state changes.
> 
> Cheers
>         Nick
-- 


Jens-Christian Lache
Technische Universitaet Hamburg-Harburg
www.tu-harburg.de/~sejl1601
Mail:
lache@tu-harburg.de
lache@ngi.de
Tel.:
+0491759610756


  parent reply	other threads:[~2001-02-23 11:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3A9686D2.CEEB419D@redhat.com>
2001-02-23 11:06 ` Nick Clifton
     [not found]   ` <0102232029510U.28931@lab04>
2001-02-23 11:38     ` Jens-Christian Lache [this message]
2001-02-23 12:15       ` Keith Seitz
2001-02-23 12:28         ` Jens-Christian Lache
2001-02-23 13:53         ` Jens-Christian Lache
     [not found]     ` <p0ae7d4280.fsf@elmo.cygnus.com>
2001-02-23 11:59       ` Jens-Christian Lache
2001-02-23 12:02 Jens-Christian Lache

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=0102232035500V.28931@lab04 \
    --to=lache@tu-harburg.de \
    --cc=gdb@sources.redhat.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