Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nitin Gupta <nitin@mobilygen.com>
To: egcs@cygnus.com
Cc: gdb@sources.redhat.com
Subject: Re: Using Simulator from within GDB
Date: Sat, 21 Apr 2001 14:52:00 -0000	[thread overview]
Message-ID: <3AE20111.54AAFED9@mobilygen.com> (raw)
In-Reply-To: <o5ae5ab8f3.fsf@touchme.toronto.redhat.com>

Hi,

I was using m32r port as a basis for a new port of my own. I wasn't clear
about how to debug an application with gdb using my ported simulator. I have
found the following command set from
http://sources.redhat.com/psim/manual/ , which seems to be working fine.

m32r-elf-gdb a.out
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading  (....)
(gdb) run


"Frank Ch. Eigler" wrote:

> Nitin Gupta <nitin@mobilygen.com> writes:
>
> : I am trying to use a simulator from within gdb 5.0. I am using m32r as
> : my processor's "skin" and using it I have generated files from CGEN,
> : giving it the m32r.cpu and m32r.opc files. I have also ported ld, gas,
> : simulator and also tested that, by writing a sample assembly code for my
> : processor and ran it on simulator after generating a.out from gas, and
> : ld.
> : [...]
>
> I don't understand -- do you mean you're using the m32r port as a basis
> for a new port of your own?  Or are you regenerating m32r just for fun?
>
> : This GDB was configured as "--host=i686-pc-linux-gnu
> : --target=m32r-elf"...
> : warning: little endian file does not match big endian target.
> :
> : (gdb) target sim
> : Target (LITTLE_ENDIAN) and configured (BIG_ENDIAN) byte order in
> : conflict
> : Target (BIG_ENDIAN) and specified (LITTLE_ENDIAN) byte order in conflict
> : [...]
>
> This is probably a sign of disagreement between gdb and linker.

Thanks for your comment, I got the bug

>
> - FChE

Thanks,
Nitin


  reply	other threads:[~2001-04-21 14:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-20 14:39 Nitin Gupta
2001-04-21  6:35 ` Cliff Tsai
2001-04-21  8:05 ` Frank Ch. Eigler
2001-04-21 14:52   ` Nitin Gupta [this message]
2001-04-30  9:33 ` Andrew Cagney

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=3AE20111.54AAFED9@mobilygen.com \
    --to=nitin@mobilygen.com \
    --cc=egcs@cygnus.com \
    --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