Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: "Dmitry S. Vasilchenko" <newdimm@gmail.com>
Cc: gdb@sources.redhat.com
Subject: Re: ppc64 gdbserver NPTL problem
Date: Sun, 16 Oct 2005 16:58:00 -0000	[thread overview]
Message-ID: <je1x2lcsag.fsf@sykes.suse.de> (raw)
In-Reply-To: <e022f2360510160800x57d95288yeec796a2d21a7ffa@mail.gmail.com> (Dmitry S. Vasilchenko's message of "Sun, 16 Oct 2005 19:00:54 +0400")

"Dmitry S. Vasilchenko" <newdimm@gmail.com> writes:

> I have met some problems with gdbserver and multithread debugging.
> The problem is that on ppc64 td_ta_event_addr from glibc returns the
> pointer to function descriptor, not the address of the function. As a
> result, gdbserver installs breakpoint at the memory address in .opd
> section, not at the function glibs expects. So gdbserver will never
> receive information about new threads creation on ppc64.
>
> It is easy to fix, but I am not sure, maybe this should be fixed in
> glibc. Your thoughts?

I think gdbserver needs to do the equivalent of
gdbarch_convert_from_func_ptr_addr, as it is done in
linux-thread-db.c:enable_thread_event.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


      reply	other threads:[~2005-10-16 16:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-16 15:00 Dmitry S. Vasilchenko
2005-10-16 16:58 ` Andreas Schwab [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=je1x2lcsag.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=gdb@sources.redhat.com \
    --cc=newdimm@gmail.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