Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Icarus Sparry" <isparry@Brocade.COM>
To: "Michael Snyder" <msnyder@specifix.com>
Cc: <gdb@sourceware.org>
Subject: RE: GDB doesn't display thread_id while debugging a core file
Date: Tue, 15 Apr 2008 06:54:00 -0000	[thread overview]
Message-ID: <A38255E470424448A800D890BC7345FE02312A0A@HQ-EXCH-5.corp.brocade.com> (raw)
In-Reply-To: <1208222665.3690.4.camel@localhost.localdomain>



> -----Original Message-----
> From: Michael Snyder [mailto:msnyder@specifix.com]
> Sent: Monday, April 14, 2008 6:24 PM
> To: Icarus Sparry
> Cc: gdb@sourceware.org
> Subject: Re: GDB doesn't display thread_id while debugging a core file
> 
> On Mon, 2008-04-14 at 18:01 -0700, Icarus Sparry wrote:
> > Last November there was some discussion on this topic, which ended
with
> > Daniel Jacobowitz saying in
> >
> > http://sourceware.org/ml/gdb/2007-08/msg00068.html
> >
> > 	If we assume that the host's libthread_db will either recognize
> > the
> > 	core file and do the right thing, or reject the core file, then
> > we can
> > 	write a small target layer that uses it on top of corelow.c in a
> > 	similar way to how linux-thread-db.c / proc-service.c use
> > linux-nat.c.
> >
> > 	It's just a matter of testing that on a couple of different
> > setups,
> > 	like LinuxThreads and cross debuggers, to see how it behaves.
> > Or
> > 	doesn't behave.
> >
> >
> > Being able to access variables declared with __thread in core files
> > would certainly be useful. Could someone give some reasonable guess
of
> > the amount of effort required to do this? In particular for a
powerpc32
> > corefile from a linux process with NPTL being debugged on an x86
linux
> > box.
> 
> Off hand, I would not expect the libthread_db library to
> be able to do anything useful with a corefile from a different
> architecture.

If I understand what Daniel was saying correctly, the libthread_db file
would be an x86 shared library, but it would be configured to handle
ppc32 elf core files, in the same way as the executable
powerpc-linux-gdb program that currently we have running on the x86
machines.


  reply	other threads:[~2008-04-15  3:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-15  3:05 Icarus Sparry
2008-04-15  3:10 ` Michael Snyder
2008-04-15  6:54   ` Icarus Sparry [this message]
2008-04-15  8:12     ` Daniel Jacobowitz
2008-04-15 18:17       ` Michael Snyder
2008-04-15 20:46         ` Icarus Sparry
2008-04-15 23:48           ` Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2007-08-08 19:13 msnyder
2007-08-08 19:21 ` Daniel Jacobowitz
2007-08-06 20:27 Carlos Eduardo Seo
2007-08-06 20:33 ` Daniel Jacobowitz
2007-08-06 21:21   ` Carlos Eduardo Seo
2007-08-07 11:31     ` 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=A38255E470424448A800D890BC7345FE02312A0A@HQ-EXCH-5.corp.brocade.com \
    --to=isparry@brocade.com \
    --cc=gdb@sourceware.org \
    --cc=msnyder@specifix.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