Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: Sergio Durigan Junior <sergiodj@redhat.com>
Cc: Simon Marchi <simon.marchi@ericsson.com>,
	gdb-patches@sourceware.org,        Mark Wielaard <mjw@redhat.com>
Subject: Re: [PATCH 2/2] Make collect_probes return an std::vector
Date: Tue, 12 Sep 2017 11:35:00 -0000	[thread overview]
Message-ID: <9092b2ca14aafd2010678fc01b761641@polymtl.ca> (raw)
In-Reply-To: <87tw08ixc9.fsf@redhat.com>

On 2017-09-12 02:17, Sergio Durigan Junior wrote:
>> diff --git a/gdb/probe.h b/gdb/probe.h
>> index 61e3031..75e9a5c 100644
>> --- a/gdb/probe.h
>> +++ b/gdb/probe.h
>> @@ -214,15 +214,22 @@ struct probe
>>     their point of use.  */
>> 
>>  struct bound_probe
>> -  {
>> -    /* The probe.  */
>> +{
>> +  bound_probe ()
>> +  {}
>> 
>> -    struct probe *probe;
>> +  bound_probe (struct probe *probe_, struct objfile *objfile_)
>> +  : probe (probe_), objfile (objfile_)
>> +  {}
> 
> What do you think about putting simple comments on these constructors
> summarizing what you explained in the commit message?

Ok, I'll do that before pushing.

>> 
>> -    /* The objfile in which the probe originated.  */
>> +  /* The probe.  */
>> 
>> -    struct objfile *objfile;
>> -  };
>> +  struct probe *probe = NULL;
>> +
>> +  /* The objfile in which the probe originated.  */
>> +
>> +  struct objfile *objfile = NULL;
>> +};
>> 
>>  /* A helper for linespec that decodes a probe specification.  It
>>     returns a std::vector<symtab_and_line> object and updates LOC or
>> --
>> 2.7.4
> 
> Otherwise, LGTM.
> 
> Thanks,

Thanks,

Simon


  parent reply	other threads:[~2017-09-12 11:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-10 14:23 [PATCH 1/2] Make probe_ops::get_probes fill " Simon Marchi
2017-09-10 14:23 ` [PATCH 2/2] Make collect_probes return " Simon Marchi
2017-09-12  0:18   ` Sergio Durigan Junior
2017-09-12  9:56     ` Mark Wielaard
2017-09-12 11:32       ` Simon Marchi
2017-09-12 11:35     ` Simon Marchi [this message]
2017-09-10 17:40 ` [PATCH 1/2] Make probe_ops::get_probes fill " Sergio Durigan Junior
2017-09-10 17:59   ` Simon Marchi
2017-09-12  0:01     ` Sergio Durigan Junior
2017-09-12 11:57       ` Simon Marchi

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=9092b2ca14aafd2010678fc01b761641@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=mjw@redhat.com \
    --cc=sergiodj@redhat.com \
    --cc=simon.marchi@ericsson.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