Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org, Jan Kratochvil <jan.kratochvil@redhat.com>
Subject: Re: RFC: lazily call save_current_space_and_thread
Date: Tue, 08 Mar 2011 18:15:00 -0000	[thread overview]
Message-ID: <201103081802.35770.pedro@codesourcery.com> (raw)
In-Reply-To: <m3tyfdh592.fsf@fleche.redhat.com>

On Tuesday 08 March 2011 17:49:29, Tom Tromey wrote:
> Pedro> I'm guessing you're trying all-stop.  In non-stop, I _think_
> Pedro> you'll much more rarely see a NULL selected frame here.
> 
> Nope, I do this before my test:
> 
>   set target-async on
>   set schedule-multiple on
>   set pagination off
>   set detach-on-fork off
>   set non-stop on


Okay.  In any case, what I was aluding to, is that
in non-stop mode gdb is making sure the user selected
frame is constant between events (fetch_inferior_event),
so in that case, there's a selected frame to restore back
to.  But thinking a bit more, that obviously doesn't matter
because if the user had a frame selected, then the debug info
for that frame has already been read anyway, and there's nothing
to optimize.

> I can't say that I understand everything that happens in this mode.
> 
> "run" appears to work in the background, which is mysterious to me.

Hmm.  It shouldn't.  Well, behind the scenes it does run
asynchronously, but only "run&" should work in the background,
from the user's perpective.

Boo, something's seriously broken :-/ :

[Thread debugging using libthread_db enabled]
process 2857 is executing new program: /usr/bin/iconv
Error in re-setting breakpoint 1: Cannot access memory at address 0x45e22a
Error in re-setting breakpoint 2: Cannot access memory at address 0x4e2e5a
warning: Error removing breakpoint 1
warning: Error removing breakpoint 2
warning: Error removing breakpoint 1
warning: Error removing breakpoint 2
warning: Error removing breakpoint 1
warning: Error removing breakpoint 2
warning: Error removing breakpoint 1
warning: Error removing breakpoint 2
warning: Error removing breakpoint 1
...

I suspect it's related to spawning iconv (or rather, that's
triggering some bug).

> 
> And, if I C-c gdb, I just get "Quit." back,

That just means you have the prompt, and the inferior is either
backgrounded, or not running at all.  To interrupt the target
in async/non-stop modes, we use "interrupt", not C-c.

> and then gdb is in a weird
> state (I can't "continue" any inferior and if I try "run" I get an
> internal error).
> 
> I am planning to debug these next; but if you know what is going on
> already...

Can't say I do.

-- 
Pedro Alves


  reply	other threads:[~2011-03-08 18:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-04 19:52 Tom Tromey
2011-03-05 12:52 ` Jan Kratochvil
2011-03-07 19:54   ` Tom Tromey
2011-03-08 17:14     ` Tom Tromey
2011-03-08 17:16       ` Jan Kratochvil
2011-03-08 17:23       ` Pedro Alves
2011-03-08 17:49         ` Tom Tromey
2011-03-08 17:56           ` Pedro Alves
2011-03-08 18:02             ` Tom Tromey
2011-03-08 18:15               ` Pedro Alves [this message]
2011-03-08 18:37                 ` Pedro Alves
2011-03-08 20:01                 ` Tom Tromey
2011-03-08 23:02                   ` Pedro Alves
2011-03-10 20:09                 ` Tom Tromey
2011-03-08 19:54           ` Tom Tromey
2011-03-08 19:54             ` Pedro Alves
2011-03-09 14:43       ` Tom Tromey

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=201103081802.35770.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=tromey@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