public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Klaus Rudolph <lts-rudolph@gmx.de>
To: gdb@sourceware.org
Subject: Re: Non-intrusive remote GDB
Date: Sun, 15 May 2011 14:16:00 -0000	[thread overview]
Message-ID: <4DCFE0EC.6000308@gmx.de> (raw)
In-Reply-To: <BANLkTim7sP_W1ae+4byRiJMeJgjau+A2cw@mail.gmail.com>

Shrikanth Kamath schrieb:

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

This is a question of process structure and the underlaying os.
Threads are typically "assigned" to one task and gdb attaches to the
whole task, which is "normally" sense full. Maybe a solution could be
that you use multiple tasks not threads. Under linux this is realized
simply in the clone command where you can give some flags which decide
over the process control. I have no idea how this is solved under your
micro kernel.

An other way is to look inside your gdbserver source where maybe a
thread/task list is kept. Maybe your gdbserver stops multiple threads
from one task out of the list. Maybe you can change the sources at this
point. It is not very complicated to do so.

But without knowing your os, your system calls to the os and all the
rest it is hard to help

regards
 Klaus



      parent reply	other threads:[~2011-05-15 14:16 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
2011-05-15 14:16 ` Klaus Rudolph [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=4DCFE0EC.6000308@gmx.de \
    --to=lts-rudolph@gmx.de \
    --cc=gdb@sourceware.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 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).