public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: Roland McGrath <roland@redhat.com>
Cc: archer@sourceware.org, utrace-devel@redhat.com
Subject: Re: gdbstub initial code, v4
Date: Fri, 20 Aug 2010 17:52:00 -0000	[thread overview]
Message-ID: <20100820174928.GA25352@redhat.com> (raw)
In-Reply-To: <20100819231403.C323940080@magilla.sf.frob.com>

On 08/19, Roland McGrath wrote:
>
> > Note the second attachment, GDBCAT. It is just the simple perl
> > script which connects /proc/ugdb to tcp port. It can be used for
> > remote debugging via tcp, or with (unpatched) gdb which can't do
> > select() on /proc/ugdb.
>
> bash$ nc -l 2000 <> /proc/ugdb &

Yes, this works,

> > Actually, it is more convenient to use
> > it in any case, at least for logging purposes.
>
> (gdb) set remote debug 1

set debug remote 1. Yes, I tried this. Very, very inconvenient.
In this case the debugging output is mixed with the normal output,

Also: you can't save to file, can't filter packets, can't add
the packet for debugging (not implemented yet).

But yes, it is not strictly necessary, nc should work too.

Oleg.

  reply	other threads:[~2010-08-20 17:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19 17:52 Oleg Nesterov
2010-08-19 23:14 ` Roland McGrath
2010-08-20 17:52   ` Oleg Nesterov [this message]
2010-08-20 18:21     ` Daniel Jacobowitz

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=20100820174928.GA25352@redhat.com \
    --to=oleg@redhat.com \
    --cc=archer@sourceware.org \
    --cc=roland@redhat.com \
    --cc=utrace-devel@redhat.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).