Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: "H . J . Lu" <hjl@lucon.org>, gdb-patches@sources.redhat.com
Subject: Re: [hjl@lucon.org: Re: Does gdb 5.2 work with statically linked thread application under Linux?]
Date: Fri, 15 Mar 2002 20:48:00 -0000	[thread overview]
Message-ID: <3C92CE7D.5060300@cygnus.com> (raw)
In-Reply-To: <20020315231605.A5470@nevyn.them.org>


>> If you don't want thread-db trying to push its self on top of a core 
>> stratum, why not check for core and ignore the event?

What about this?

>> (GNU/Linux doesn't want the thread-db pushing its self on top of a CORE 
>> stratum but other OS's do (with an N:M thread:lwp mapping for instance).
> 
> 
> I can't find the precise message any more, but I believe we'd decided
> thread-db and core files was a bad idea without more work on thread-db. 
> In any case, Michael Snyder said to me:

It isn't thread-db that needs the work, it is the target 
stack/stratum/sandwich :-)

>>>> Umm... I had to think about this, but no.  You can't debug a corefile
>>>> until you kill or detach from the process that you're already
>>>> debugging.
>>>> When you kill or detach, that ought to take care of the unpush.

Two reasons:

Target stratum (thread, process, ...) is limited to only one instance as 
most of each target's state is in static data

The target stratum is one dimentional (for want of a better phrase).  It 
isn't possible to have:

	process:  thread-db -> remote -> ...
	core: thread-db -> corefile -> ...

> Maybe it should, but (probably because of when thread-db gets pushed?)
> it definitely does not.  Perhaps that is the real bug?
> 
> Should thread_db_detach call unpush_target?  Some targets seem to like
> that model, some don't.  The way we load our target in new_objfile_hook
> always struck me as somewhat gross.

I suspect, for the moment, it is the best thing we have. 
new_objfile_hook is the only ``new symbol file'' event available.

Andrew


      reply	other threads:[~2002-03-16  4:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-13  9:50 Daniel Jacobowitz
2002-03-13  9:54 ` H . J . Lu
2002-03-15 18:51   ` Andrew Cagney
2002-03-15 19:20     ` Daniel Jacobowitz
2002-03-15 19:56       ` Andrew Cagney
2002-03-15 20:16         ` Daniel Jacobowitz
2002-03-15 20:48           ` Andrew Cagney [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=3C92CE7D.5060300@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=hjl@lucon.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