Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Paul Pluzhnikov <ppluzhnikov@google.com>, Yao Qi <yao@codesourcery.com>
Subject: Re: [patch] Add tests for JIT debugging interface
Date: Wed, 19 Jan 2011 19:27:00 -0000	[thread overview]
Message-ID: <201101191203.35101.pedro@codesourcery.com> (raw)
In-Reply-To: <AANLkTi=yDTcCt7F-Z0U88QoQuaQJRwtp-LxX1ivD91C1@mail.gmail.com>

On Wednesday 19 January 2011 10:22:53, Paul Pluzhnikov wrote:
> On Wed, Jan 12, 2011 at 8:57 AM, Yao Qi <yao@codesourcery.com> wrote:
> > There are still two failures, which are not about 'set args' in
> > gdbserver.
> > 
> > FAIL: gdb.base/jit.exp: info function jit_function
> > FAIL: gdb.base/jit.exp: info function jit_function
> 
> Yes, I see that as well.
> 
> > info function jit_function^M
> > All functions matching regular expression "jit_function":^M
> > (gdb) FAIL: gdb.base/jit.exp: info function jit_function
> > 
> > In gdb.log, I find something strange,
> > 
> > (gdb) continue^M
> > Continuing.^M
> > jit_inferior_init, registering_code = 0^M
> > jit_inferior_init, reg_addr = 0x80486c4^M
> > jit_inferior_init, jit_descriptor_addr = 0x804a040^M
> > Cannot remove breakpoints because program is no longer writable. <-- [1]
> 
> And that.

It's output from infrun.c:normal_stop.  Sounds like a bug somewhere.

> 
> > There is no such error [1] in native gdb test.  I have no clue on this so
> > far.
> 
> That's alright -- I was going to fix this area (see "JIT interface
> slowness" in gdb@sourceware.org list), and this isn't the only problem --
> I also noticed that we leak several jit_breakpoints on rerun.
> 
> > We may re-write jit-main.c a little bit to compute the location of
> > jit-solib.so via getcwd() + argv[0], rather than passing arguments of its
> > location.
> 
> Done slightly differently.
> 
> I believe revised patch addresses all comments so far.
> 
> Thanks,

> +int main (int argc, char *argv[])
> +{
> +  /* These variables are here so they can easily be set from jit.exp  */

"main" at column 0.  Period, double space.

> +gdb_exit
> +gdb_start
> +gdb_reinitialize_dir $srcdir/$subdir
> +gdb_load $binfile

gdb_load_shlibs call missing.  This will probably need tweaking for
remote host testing, but we'll handle it when/if we stumble on it
on our testing, probably.

Did you try Yao's suggestion of using clean_restart/prepare_for_testing, etc.?
We're prefering using those whenever possible.

Other than that, this looks fine.  Please go ahead.

-- 
Pedro Alves


  parent reply	other threads:[~2011-01-19 19:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-11 23:28 Paul Pluzhnikov
2011-01-12  7:02 ` Yao Qi
2011-01-12 10:44   ` Pedro Alves
2011-01-12 15:19     ` Paul Pluzhnikov
2011-01-12 16:12       ` Pedro Alves
2011-01-12 17:23       ` Yao Qi
2011-01-12 17:33         ` Paul Pluzhnikov
2011-01-18 17:07           ` Paul Pluzhnikov
2011-01-19 19:27           ` Pedro Alves [this message]
2011-01-19 20:30             ` Paul Pluzhnikov
2011-01-19 21:04               ` Pedro Alves
2011-01-19 21:09               ` Yao Qi
2011-01-12 10:03 ` Pedro Alves

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=201101191203.35101.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=ppluzhnikov@google.com \
    --cc=yao@codesourcery.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