Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org, Yuri <yuri@rawbw.com>
Subject: Re: [patch,7.3] Fix JIT clang-lli gdb-7.3 regression Re: [gdb-7.3] Error in gdb-llvm integration: Unable to read JIT descriptor from remote memory!
Date: Tue, 05 Jul 2011 02:26:00 -0000	[thread overview]
Message-ID: <CALoOobONamQh-6NJDuq+2KzFuKffwKE4RsQROy5RN=cZGE5sJA@mail.gmail.com> (raw)
In-Reply-To: <20110704214654.GA21844@host1.jankratochvil.net>

On Mon, Jul 4, 2011 at 2:46 PM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Sun, 03 Jul 2011 01:36:45 +0200, Yuri wrote:
>> I tried the upcoming gdb-7.3 and the message "Unable to read JIT descriptor
>> from remote memory!" is back when llvm::JITEmitDebugInfo is set when
>> libLLVM-3.0.so is loaded dynamically.
>> gdb-7.1 was broken this way, gdb-7.2 works, now gdb-7.3 code is broken
>> again.

Sorry about the breakage ...

> 739571cc3151651f49f7171cfd98275d983bfaaa is the first bad commit
> commit 739571cc3151651f49f7171cfd98275d983bfaaa
> Author: Paul Pluzhnikov <ppluzhnikov@google.com>
> Date:   Mon Jan 31 21:37:00 2011 +0000
> Re: [patch] Fix leak of bp_jit_event breakpoints
> http://sourceware.org/ml/gdb-patches/2011-01/msg00556.html
>
> I expect Paul had /usr/bin/lli linked statically; /usr/bin/lli uses
> libLLVM-2.8.so at least on Fedora 15.

Rather, I didn't test with lli (I don't even know what it is).

> I have mostly reverted that part of the Paul's patch

FWIW, I don't believe reverting the patch is the right fix. Certainly
using a single global to guard against recursive invocation can not
possibly work correctly in multi-inferior GDB.

> there is no "reduced"
> reinitialization on a new objfile load as it can be the first successful
> initialization at all.

It's been a while since I looked at that code, but it sounds to me
that we should keep the jit_inferior_data per-objfile, and not
per-inferior. This might even allow GDB to work with multiple JITers
in the same inferior ;-)

I'll see if I can work up a patch tomorrow.

Thanks,
-- 
Paul Pluzhnikov


  reply	other threads:[~2011-07-04 22:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4E0FAB8D.2070709@rawbw.com>
2011-07-04 22:21 ` Jan Kratochvil
2011-07-05  2:26   ` Paul Pluzhnikov [this message]
2011-07-05  8:00     ` [patch,7.3] Fix JIT clang-lli gdb-7.3 regression Jan Kratochvil
2011-07-05 17:08     ` [patch,7.3] Fix JIT clang-lli gdb-7.3 regression Re: [gdb-7.3] Error in gdb-llvm integration: Unable to read JIT descriptor from remote memory! Tom Tromey
2011-07-05 17:44       ` Joel Brobecker
2011-07-05 21:08         ` Paul Pluzhnikov
2011-07-05 22:18           ` Joel Brobecker
2011-07-05 22:23             ` Paul Pluzhnikov
2011-07-06 12:10           ` [patch,7.3] Fix JIT clang-lli gdb-7.3 regression Jan Kratochvil
2011-07-06 16:12             ` Joel Brobecker
2011-07-06 16:35               ` Paul Pluzhnikov
2011-07-06 16:37               ` Jan Kratochvil
2011-07-06 17:12                 ` Paul Pluzhnikov
2011-07-06 17:26                   ` Jan Kratochvil
2011-07-06 17:04           ` [patch,7.3] Fix JIT clang-lli gdb-7.3 regression Re: [gdb-7.3] Error in gdb-llvm integration: Unable to read JIT descriptor from remote memory! Paul Pluzhnikov
2011-07-06 22:18             ` Joel Brobecker
2011-07-06 22:50               ` Paul Pluzhnikov
2011-07-06 22:52                 ` Joel Brobecker
2011-07-07 12:10                 ` Jan Kratochvil

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='CALoOobONamQh-6NJDuq+2KzFuKffwKE4RsQROy5RN=cZGE5sJA@mail.gmail.com' \
    --to=ppluzhnikov@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=yuri@rawbw.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