Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Aleksandar Ristovski <aristovski@qnx.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] nto-procfs.c: Add to_xfer_partial
Date: Tue, 28 Jul 2009 12:01:00 -0000	[thread overview]
Message-ID: <200907281222.26339.pedro@codesourcery.com> (raw)
In-Reply-To: <4A6E03B3.7080805@qnx.com>

On Monday 27 July 2009 20:44:51, Aleksandar Ristovski wrote:
> Pedro Alves wrote:
> > (( Note: It isn't correct to defer to the target beneath for
> > TARGET_OBJECT_MEMORY (and similars) objects, but, I see that nto-procfs.c
> > is still implementing deprecated_xfer_memory.  ))
> 
> Did you want me to make changes here?

Nope, consider it an FYI.

> 
> >> +  /* For 32-bit architecture, size of auxv_t is 8 bytes.  */
> >> +  const unsigned int sizeof_auxv_t = 8;
> > 
> > NTO doesn't support any 64-bit architecture?
> 
> No, not yet.

Okay.

> 
> > 
> >> +  enum bfd_endian byte_order;
> >> +
> >> +  /* Skip over argc, argv and envp... (see comment in ldd.c)  */
> >> +  if (target_read_memory (initial_stack + data_ofs, targ32, sizeof (targ32))
> >> +      != 0)
> >> +    return 0;
> > 
> > Can you paste here that ldd.c comment too?  You had pasted it in the
> > equivalent gdbserver bit.
> 
> Done.

Thanks!

On Monday 27 July 2009 20:44:51, Aleksandar Ristovski wrote:
> +static LONGEST
> +procfs_xfer_partial (struct target_ops *ops, enum target_object object,
> +                    const char *annex, gdb_byte *readbuf,
> +                    const gdb_byte *writebuf, ULONGEST offset, LONGEST len)
> +{
> +  if (object == TARGET_OBJECT_AUXV
> +      && readbuf)
> +    {
> +      int err;
> +      CORE_ADDR initial_stack;
> +      debug_process_t procinfo;
> +
> +      if (offset > 0)
> +       return 0;

This offset > 0 check isn't really correct.  Would it be hard to
make this work with partial transfers?

-- 
Pedro Alves


  reply	other threads:[~2009-07-28 11:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11 20:31 Aleksandar Ristovski
2009-06-11 21:36 ` Pierre Muller
2009-06-12  2:25   ` Aleksandar Ristovski
2009-06-12  6:55     ` Pierre Muller
2009-06-18 15:16       ` Aleksandar Ristovski
2009-07-07 16:23         ` Aleksandar Ristovski
2009-07-21 15:45           ` Aleksandar Ristovski
2009-07-24 14:16           ` Pedro Alves
2009-07-27 20:17             ` Aleksandar Ristovski
2009-07-28 12:01               ` Pedro Alves [this message]
2009-07-28 22:17                 ` Aleksandar Ristovski
2009-08-24 11:34                   ` 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=200907281222.26339.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=aristovski@qnx.com \
    --cc=gdb-patches@sourceware.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