This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH V3 1/9] Adapt `info probes' to support printing probes of different types.
- From: Pedro Alves <palves at redhat dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>, "Jose E. Marchesi" <jose dot marchesi at oracle dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 14 Nov 2014 12:37:57 +0000
- Subject: Re: [PATCH V3 1/9] Adapt `info probes' to support printing probes of different types.
- Authentication-results: sourceware.org; auth=none
- References: <1414504218-31204-1-git-send-email-jose dot marchesi at oracle dot com> <1414504218-31204-2-git-send-email-jose dot marchesi at oracle dot com> <87oass6pbc dot fsf at redhat dot com>
On 10/31/2014 06:56 PM, Sergio Durigan Junior wrote:
> Also, any particular reason why you did not create a field "type" inside
> "struct probe", instead of making a function that returns the string? I
> consider the field would be simpler (i.e., not pollute the probe_ops
> structure), and it could be set when creating the probes.
Not sure I understood it (and probably doesn't matter much), seems like
that'd waste memory storing the same info over and over?
Thanks,
Pedro Alves