public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Shrikanth Kamath <shrikanth07@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Non-intrusive remote GDB
Date: Sun, 15 May 2011 12:52:00 -0000	[thread overview]
Message-ID: <20110515125217.GA10100@host1.jankratochvil.net> (raw)
In-Reply-To: <BANLkTim7sP_W1ae+4byRiJMeJgjau+A2cw@mail.gmail.com>

On Wed, 11 May 2011 19:40:39 +0200, Shrikanth Kamath wrote:
> My question is it possible / feasible to attempt the remote GDB attach
> only to single micro kernel thread in the PPC plane
> and not halt it totally? Say the other threads proceed as normal.

During the initial attach normally all the threads get attached and they get
stopped by the attachment.  Later you can have stopped only one specific
thread by using non-stop mode:
	$ info '(gdb)Non-Stop Mode'

To not to stop the other threads at all one needs to disallow finding
gdbserver the file libthread_db.so.1, besides reconfiguring GDB as a safe bet
you can rename/hide it on the PPC board.  `info threads' shows only the
single/initial thread.

(Assuming GNU/Linux environment on the PPC borad; you did not say.)


Regards,
Jan

  reply	other threads:[~2011-05-15 12:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11 17:40 Shrikanth Kamath
2011-05-15 12:52 ` Jan Kratochvil [this message]
2011-05-15 14:16 ` Klaus Rudolph

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=20110515125217.GA10100@host1.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=shrikanth07@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).