From: bernd@petrovitsch.priv.at (Bernd Petrovitsch)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How can I 'getchar()' in module code?
Date: Thu, 05 Dec 2013 14:14:52 +0100 [thread overview]
Message-ID: <1386249292.9055.113.camel@thorin> (raw)
In-Reply-To: <CAEnQRZBHguvHS=QFpRqfOUMSJnNxvKGZfHpFph7DehBcw3hgmA@mail.gmail.com>
On Mit, 2013-12-04 at 23:21 +0200, Daniel Baluta wrote:
> On Tue, Dec 3, 2013 at 4:20 PM, Bernd Petrovitsch
> <bernd@petrovitsch.priv.at> wrote:
> > On Die, 2013-12-03 at 08:38 -0500, Valdis.Kletnieks at vt.edu wrote:
> >> On Tue, 03 Dec 2013 20:35:41 +0800, said:
> >> > For debugging purpose, I want something like 'getchar()' that can pause
> >> > execution in the module code. Do any candidates I can choose?
>
> I think there is a way to stop execution :). Run your image under
> qemu, and use gdb to
> set breakpoints.
Yup.
Or you can run UML and use the regular gdb and probably even plain-old
getchar() as it runs as a user-space process.
The question is, if the interesting parts/drivers/subsystems are there
too.
Bernd
--
Bernd Petrovitsch Email : bernd at petrovitsch.priv.at
LUGA : http://www.luga.at
next prev parent reply other threads:[~2013-12-05 13:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-03 12:35 How can I 'getchar()' in module code? 乃宏周
2013-12-03 13:20 ` Daniel Baluta
2013-12-03 13:38 ` Valdis.Kletnieks at vt.edu
2013-12-03 14:20 ` Bernd Petrovitsch
2013-12-04 21:21 ` Daniel Baluta
2013-12-05 13:14 ` Bernd Petrovitsch [this message]
2013-12-05 1:34 ` Peter Teoh
2013-12-05 4:45 ` 乃宏周
2013-12-06 1:40 ` Fan Du
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=1386249292.9055.113.camel@thorin \
--to=bernd@petrovitsch.priv.at \
--cc=kernelnewbies@lists.kernelnewbies.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.