public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: archer@sourceware.org, utrace-devel@redhat.com
Subject: problems with v3 (Was: gdbstub initial code, v3)
Date: Thu, 12 Aug 2010 23:55:00 -0000	[thread overview]
Message-ID: <20100812235228.GA15051@redhat.com> (raw)
In-Reply-To: <m3iq3g5tv2.fsf@fleche.redhat.com>

On 08/11, Tom Tromey wrote:
>
> >>>>> "Oleg" == Oleg Nesterov <oleg@redhat.com> writes:
>
> Oleg> So, the patch below fixes the problem, and gdb + /proc/ugdb seems
> Oleg> to work.
>
> Oleg> Indeed, gdb sees that this fd is not pipe/tcp and uses the "hardwire"
> Oleg> serial_ops, but hardwire_readchar() doesn't play well with select().
>
> Oleg> Please teach gdb to use poll/select ?
>
> I looked at this a little bit.  It seems to me that the "hardwire" stuff
> is for talking to ttys, and we instead want gdb to be using the pipe code.

I didn't verify this, but I don't think so. Please look at pipe_open().
Perhaps it makes sense to serial_add_interface("ugdb"), I dunno.


OK. I was going to add some cleanups and send the new version today.
But after some testing (without gdb) I hit the kernel crashes. This
makes me think that probably something is wrong ;)

As usual, I can't blame my code. I am still investigating, the crash
is not easy to reproduce, but so far I _suspect_ the problems in utrace
code. At least utrace_barrier()->signal_pending() is definitely not
right.

Will continue tomorrow.

Oleg.

  reply	other threads:[~2010-08-12 23:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12  0:01 gdbstub initial code, v3 Oleg Nesterov
2010-08-12  1:14 ` Oleg Nesterov
2010-08-12  2:40   ` Oleg Nesterov
2010-08-12  4:37     ` Tom Tromey
2010-08-12 23:55       ` Oleg Nesterov [this message]
2010-08-13  1:45         ` problems with v3 Tom Tromey
2010-08-13  1:59           ` Roland McGrath
2010-08-13  4:37             ` Tom Tromey
2010-08-13  8:30               ` Roland McGrath
2010-08-13 16:31                 ` Tom Tromey
2010-08-13 21:15                   ` Oleg Nesterov
2010-08-13 21:18                     ` Tom Tromey
2010-08-13 14:08               ` Daniel Jacobowitz
2010-08-13 20:56         ` problems with v3 (Was: gdbstub initial code, v3) Oleg Nesterov
2010-08-13 21:31           ` Roland McGrath
2010-08-13  1:02     ` gdbstub initial code, v3 Roland McGrath
2010-08-12 14:52   ` Kevin Buettner
2010-08-13  0:53     ` Roland McGrath
2010-08-13  3:31       ` Kevin Buettner
2010-08-12 15:06   ` Frank Ch. Eigler

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=20100812235228.GA15051@redhat.com \
    --to=oleg@redhat.com \
    --cc=archer@sourceware.org \
    --cc=tromey@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).