From: "Frank Ch. Eigler" <fche@redhat.com>
To: Manganotto Filippo <in000566@students.univr.it>
Cc: gdb@sources.redhat.com
Subject: Re: Connect 2 mips simulator
Date: Fri, 07 Sep 2001 04:42:00 -0000 [thread overview]
Message-ID: <20010907074214.A20756@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0109071320150.29103-100000@delta046.sci.univr.it>
Hi -
On Fri, Sep 07, 2001 at 01:36:17PM +0200, Manganotto Filippo wrote:
: I'm working with Zampieri Marco. We have downloaded GDB from CVS
: and installed it. We find option --memory-mapfile FILE, but we doesn't
: know how to use it, because when we run
: $>TARGET-run --memory-mapfile pippo.txt --memory-region=... hello
: [...]
: than we create an empty file called "pippo.txt", an the run
: $>Error, cannot confirm that mmap file is large enough (>= 32768
: bytes)
A typical use of the mmap system call requires that the file being mapped
into memory be at least as large as the chosen mapped memory size, so
that there is a one-to-one relationship between an existing byte in a
file, and a mapped byte in memory. This means that an empty file, or
a too-small file will not be acceptable.
An easy way to create a file of a chosen size is to use the dd command
like this:
dd if=/dev/zero of=pippo.txt bs=32768 count=1
This copies 1 block of 32768 bytes from /dev/zero to pippo.txt.
You will have a nice small zero-filled file.
- FChE
--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7mLKWVZbdDOm/ZT0RApbJAJ95KQ8MZtTB8pkeYBlDZointLP0HQCfZLT1
/WU5F50UAHfNpCGu2ezDjlU=
=qqir
-----END PGP SIGNATURE-----
From in000566@students.univr.it Fri Sep 07 05:07:00 2001
From: Manganotto Filippo <in000566@students.univr.it>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: "gdb@sources.redhat.com" <gdb@sources.redhat.com>
Subject: Re: Connect 2 mips simulator
Date: Fri, 07 Sep 2001 05:07:00 -0000
Message-id: <Pine.LNX.4.33.0109071359470.29146-100000@delta046.sci.univr.it>
References: <20010907074214.A20756@redhat.com>
X-SW-Source: 2001-09/msg00059.html
Content-length: 584
Hi,
I create file pippo.txt with command that you tell me and then I
run simulator with parameters and the programma Hello World, but into file
it doesn't write nothing.
If I have understood just, into file I would have to find the simulator
memory into file, such as for example:
<memory location> : <memory value>
Is this right?
Thanks in advance
---------------------------------------------------------------
MANGANOTTO FILIPPO
filippo.manganotto@students.univr.it
manganot@arena.sci.univr.it
pippomanga@tiscalinet.it
filippo.manganotto@tin.it
next prev parent reply other threads:[~2001-09-07 4:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-07 4:37 Manganotto Filippo
2001-09-07 4:42 ` Frank Ch. Eigler [this message]
[not found] ` <Pine.LNX.4.33.0109071359470.29146-100000@delta046.sci.univr.it>
2001-09-07 7:09 ` Frank Ch. Eigler
-- strict thread matches above, loose matches on Subject: below --
2001-09-06 15:19 Frank Ch. Eigler
2001-09-03 8:42 Zampieri Marco
2001-09-03 9:19 ` Frank Ch. Eigler
2001-09-06 5:44 ` Zampieri Marco
2001-09-06 6:46 ` Frank Ch. Eigler
2001-09-06 7:46 ` Zampieri Marco
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=20010907074214.A20756@redhat.com \
--to=fche@redhat.com \
--cc=gdb@sources.redhat.com \
--cc=in000566@students.univr.it \
/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