Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: "Jose E. Marchesi" <jose.marchesi@oracle.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH V4 1/3] gdb: support for eBPF
Date: Fri, 10 Jul 2020 10:49:04 -0400	[thread overview]
Message-ID: <7eb355b4-9674-c838-e205-1dbc67ebc50e@simark.ca> (raw)
In-Reply-To: <87blknqw91.fsf@oracle.com>

On 2020-07-10 10:29 a.m., Jose E. Marchesi wrote:
> 
> Hi Simon.
>     
>     I have noted a few mostly stylistic comments.  I don't know much
>     about eBPF, so I can't really comment on the behavior.
> 
> Thanks for the review.
>     
>     > +/* Frame unwinder.
>     > +
>     > +   XXX it is not clear how to unwind in eBPF, since the stack is not
>     > +   guaranteed to be contiguous, and therefore no relative stack
>     > +   addressing can be done in the callee in order to access the
>     > +   caller's stack frame.  To explore with xBPF, which will relax this
>     > +   restriction.  */
>     > +
>     > +/* Given THIS_FRAME, return its ID.  */
>     > +
>     > +static void
>     > +bpf_frame_this_id (struct frame_info *this_frame,
>     > +		   void **this_prologue_cache,
>     > +		   struct frame_id *this_id)
>     > +{
>     > +}
>     
>     So if I understand correctly, at the moment there's no unwinding at all,
>     there's always just one frame?  What ID does that frame have?  Would it
>     still be good to assign something (constant) to *THIS_ID to make sure it's
>     not random junk?
> 
> Would setting null_frame_id make sense there?
> 

I don't know enough off-hand to tell.

Simon


  reply	other threads:[~2020-07-10 14:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10 12:25 [PATCH V4 0/3] eBPF support Jose E. Marchesi
2020-07-10 12:25 ` [PATCH V4 1/3] gdb: support for eBPF Jose E. Marchesi
2020-07-10 12:38   ` Eli Zaretskii
2020-07-10 13:51   ` Simon Marchi
2020-07-10 14:29     ` Jose E. Marchesi
2020-07-10 14:49       ` Simon Marchi [this message]
2020-07-10 12:25 ` [PATCH V4 2/3] sim: eBPF simulator Jose E. Marchesi
2020-07-12  8:25   ` Andrew Burgess
2020-07-12 10:06     ` Jose E. Marchesi
2020-07-10 12:25 ` [PATCH V4 3/3] sim: generated files for the " Jose E. Marchesi

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=7eb355b4-9674-c838-e205-1dbc67ebc50e@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=jose.marchesi@oracle.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