linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Miao Qingjun <qmiao@centecnetworks.com>
Cc: user-mode-linux-user@lists.sourceforge.net,
	user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] [uml-user] uml and gdb debugging questions
Date: Thu, 13 Jul 2006 15:37:12 -0400	[thread overview]
Message-ID: <20060713193712.GE5413@ccure.user-mode-linux.org> (raw)
In-Reply-To: <019a01c6a54f$405ffdf0$d4190a0a@centecnetworks.com>

On Wed, Jul 12, 2006 at 09:05:22AM +0800, Miao Qingjun wrote:
> I start "gdb uml", "b sys_init_module", then "run",
> but gdb is not break at sys_init_module() when I insmod LKM?
> Why? How can I do it?

Some versions of gdb don't work well on UML.  One thing that often
works is to attach to UML when it's booted, just before doing whatever
you want to debug.

				Jeff

> When I type control-c in gdb, the virtual console xterm is also
> closed,

How are you running UML?  You normally can't ^C to get back to gdb
because the UML console has put the terminal in raw mode, so it can
see ^C, ^Z, etc and pass them along to the UML foreground process.

What I normally do is kill -INT <pid>, where pid is the lowest UML
pid.

				Jeff


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  parent reply	other threads:[~2006-07-13 19:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-12  1:05 [uml-devel] uml and gdb debugging questions Miao Qingjun
2006-07-12 18:59 ` Blaisorblade
2006-07-13 19:37 ` Jeff Dike [this message]
2006-07-14 18:48   ` [uml-devel] [uml-user] " Blaisorblade

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=20060713193712.GE5413@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=qmiao@centecnetworks.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=user-mode-linux-user@lists.sourceforge.net \
    /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