linux-um archives
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Jeff Dike <jdike@addtoit.com>,
	Miao Qingjun <qmiao@centecnetworks.com>,
	user-mode-linux-user@lists.sourceforge.net
Subject: Re: [uml-devel] SIGTRAP and gdb multithreading program under UML
Date: Thu, 13 Jul 2006 20:50:29 +0200	[thread overview]
Message-ID: <200607132050.30062.blaisorblade@yahoo.it> (raw)
In-Reply-To: <20060713184556.GB5413@ccure.user-mode-linux.org>

On Thursday 13 July 2006 20:45, Jeff Dike wrote:
> On Thu, Jul 13, 2006 at 08:49:31PM +0800, Miao Qingjun wrote:
> > Under UML bash, I gdb a multithreading program, and set a breakpoint on
> > thread entry function, But when run it, gdb is not stop at the
> > breakpoint,
> > instead, program exit because:
> >
> > Program terminated with signal SIGTRAP, Trace/breakpoint trap.
>
> What version of UML?  Sounds like a bug in UML interrupt handling.
>
> Can you send me a copy of the binary you're debugging?
SIGTRAP must be sent for the breakpoint - I think the problem is that either 
GDB misinterprets it or it is not sent the correct way.

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 



-------------------------------------------------------------------------
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

  reply	other threads:[~2006-07-13 18:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-13 12:49 [uml-devel] SIGTRAP and gdb multithreading program under UML Miao Qingjun
2006-07-13 18:45 ` Blaisorblade
2006-07-13 18:45 ` Jeff Dike
2006-07-13 18:50   ` Blaisorblade [this message]
2006-07-13 19:16     ` Jeff Dike

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=200607132050.30062.blaisorblade@yahoo.it \
    --to=blaisorblade@yahoo.it \
    --cc=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