From: Philippe Waille <Philippe.Waille@imag.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu-user/gdbstub : gdb remote pipe connexion addition ?
Date: Wed, 25 Mar 2009 23:58:06 +0100 [thread overview]
Message-ID: <20090325225806.GA21100@otto.imag.fr> (raw)
In-Reply-To: <200903241252.57755.paul@codesourcery.com>
On Tue, Mar 24, 2009 at 12:52:57PM +0000, Paul Brook wrote:
> For userspace emulation using stdio IMHO doesn't make a whole lot of sense.
> The user application is almost certainly already using that for something
> else. This is different to e.g. gdbserver and openocd where the debug stub is
> a separate process from the user application.
Ok if qemu in user mode only targets cross develop/debug/benchmark of
complete applications in C/C++/JAVA/... for an embeded target system. But I
consider other another usage.
An efficient user mode simulator such as qemu is also very interesting for
(any ISA != IA32) assembly langage teaching. I would use it to replace the
gdb builtin ARM simulator (rdi targeti, removed from gdb since 6.4).
Students learning assembly langage programming ususally write very
small programs (n!, sum of array elements,...) and will only use a few basic
stdio primitives (printf/scanf/putchar/getchar) already translated in gdb
remote file I/O by qemu gbstub. Nothing else : they don't call pipe, dup
or ioctl from assembler code !
Qemu-arm user mode with socket based gdb connexion is already a valuable tool,
but gdb remote pipe connexion would allow cleaner and easier
gdb starting/configuration/termination procedures (script files),
especially on shared POSIX servers.
Note : I would event be interested by ARM semihosting on gdb file I/O
protocol through openocd and JTAG interfaces, ... but its too
much work for the benefits.
Best regards
Ph. W.
--
-----------------------------------------------------------------------------
Philippe WAILLE email : Philippe.Waille@imag.fr
IMAG ID (Informatique et distribution) Tel : 04 76 61 20 13
ENSIMAG - antenne de Montbonnot Foreign : 33 4 76 61 20 13
INOVALLEE Fax : 04 76 61 20 99
51, avenue Jean Kuntzmann
38330 MONTBONNOT SAINT MARTIN
prev parent reply other threads:[~2009-03-25 23:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-20 14:51 [Qemu-devel] qemu-user/gdbstub : gdb remote pipe connexion addition ? Philippe Waille
2009-03-21 9:30 ` [Qemu-devel] " Jan Kiszka
2009-03-24 12:52 ` [Qemu-devel] " Paul Brook
2009-03-25 22:58 ` Philippe Waille [this message]
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=20090325225806.GA21100@otto.imag.fr \
--to=philippe.waille@imag.fr \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.