From: Gary Benson <gbenson@redhat.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Sergio Durigan Junior <sergiodj@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [RFA 3/4] Improved linker-debugger interface
Date: Wed, 18 Jul 2012 10:36:00 -0000 [thread overview]
Message-ID: <20120718103533.GA2679@redhat.com> (raw)
In-Reply-To: <20120718070227.GA30859@host2.jankratochvil.net>
Jan Kratochvil wrote:
> On Wed, 18 Jul 2012 01:42:12 +0200, Sergio Durigan Junior wrote:
> > I was considering suggesting the removal of the `gdb_assert'
> > calls, and instead make it a simple check and return properly
> > if the OBJFILE does not support probes.
> >
> > unsigned
> > get_probe_argument_count (struct objfile *objfile, struct probe *probe)
> > {
> > if (objfile->sf == NULL || objfile->sf->sym_probe_fns == NULL)
> > return 0;
> >
> > return objfile->sf->sym_probe_fns->sym_get_probe_argument_count (objfile,
> > probe);
> > }
> >
> > It would cover the case when OBJFILE does not support probe and
> > would not be less safe.
>
> In fact why 'struct probe' does not contain its 'struct objfile *'?
> It does not make sense to pass probe with different objfile. So the
> parameter 'objfile' should not be passed at all.
That would certainly simplify my code. Sergio, is this possible to
do?
Cheers,
Gary
--
http://gbenson.net/
next prev parent reply other threads:[~2012-07-18 10:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-12 12:34 [RFA 0/4] " Gary Benson
2012-07-12 12:35 ` [RFA 1/4] " Gary Benson
2012-07-12 12:36 ` [RFA 3/4] " Gary Benson
2012-07-17 18:01 ` Sergio Durigan Junior
2012-07-17 21:57 ` Jan Kratochvil
2012-07-17 23:42 ` Sergio Durigan Junior
2012-07-18 7:02 ` Jan Kratochvil
2012-07-18 10:36 ` Gary Benson [this message]
2012-07-19 14:36 ` Gary Benson
2012-07-12 12:36 ` [RFA 4/4] " Gary Benson
2012-07-13 9:42 ` Gary Benson
2012-07-13 12:20 ` Gary Benson
2012-07-17 18:11 ` Sergio Durigan Junior
2012-07-18 14:28 ` Jan Kratochvil
2012-07-18 15:11 ` Sergio Durigan Junior
2012-07-19 14:38 ` Gary Benson
2012-07-12 12:36 ` [RFA 2/4] " Gary Benson
2012-07-13 9:41 ` Gary Benson
2012-07-18 14:08 ` [RFA 0/4] " Gary Benson
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=20120718103533.GA2679@redhat.com \
--to=gbenson@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=sergiodj@redhat.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