From: Pedro Alves <palves@redhat.com>
To: Tom Tromey <tromey@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [RFC] auto-generate most target debug methods
Date: Tue, 15 Jul 2014 11:17:00 -0000 [thread overview]
Message-ID: <53C5042B.6080406@redhat.com> (raw)
In-Reply-To: <1403208237-27023-1-git-send-email-tromey@redhat.com>
Hi Tom,
I like the idea of this patch a lot.
On 06/19/2014 09:03 PM, Tom Tromey wrote:
> - void (*to_resume) (struct target_ops *, ptid_t, int, enum gdb_signal)
> + void (*to_resume) (struct target_ops *, ptid_t, target_debug_step,
> + enum gdb_signal)
> TARGET_DEFAULT_NORETURN (noprocess ());
What I'm not sure I like is the need for new typedefs. Seems odd to
me to have a textual mismatch between the declaration and all
the implementations.
Did you try an __attribute__(())-like approach? Something like:
void (*to_resume) (struct target_ops *,
ptid_t,
int step TDP (print_target_resume_step),
enum gdb_signal)
TARGET_DEFAULT_NORETURN (noprocess ());
Parameters that have no explicit attribute would still fallback
to type based printing. It'd be a way to override the default.
Another similar idea, but written out of line:
void (*to_resume) (struct target_ops *, ptid_t, int step,
enum gdb_signal)
TARGET_DEBUG_PRINT (step, print_target_resume_step)
TARGET_DEFAULT_NORETURN (noprocess ());
?
--
Pedro Alves
next prev parent reply other threads:[~2014-07-15 10:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-19 20:04 Tom Tromey
2014-06-20 8:00 ` Yao Qi
2014-06-20 14:04 ` Tom Tromey
2014-07-15 11:17 ` Pedro Alves [this message]
2014-07-15 15:20 ` Tom Tromey
2014-07-16 15:46 ` Tom Tromey
2014-07-17 14:50 ` Pedro Alves
2014-07-17 16:12 ` Tom Tromey
2014-07-17 16:35 ` Pedro Alves
2014-07-17 16:41 ` Tom Tromey
2014-07-17 16:52 ` Pedro Alves
2014-07-17 16:49 ` Tom Tromey
2014-07-17 16:51 ` Pedro Alves
2014-07-24 13:59 ` Tom Tromey
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=53C5042B.6080406@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@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