This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] auto-generate most target debug methods
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 15 Jul 2014 09:18:32 -0600
- Subject: Re: [RFC] auto-generate most target debug methods
- Authentication-results: sourceware.org; auth=none
- References: <1403208237-27023-1-git-send-email-tromey at redhat dot com> <53C5042B dot 6080406 at redhat dot com>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> What I'm not sure I like is the need for new typedefs. Seems odd to
Pedro> me to have a textual mismatch between the declaration and all
Pedro> the implementations.
Yeah.
Pedro> Did you try an __attribute__(())-like approach?
I thought of it, but I didn't give it a try, I think just because the
whole idea was speculative enough that I didn't want to sink a lot of
time into it.
Pedro> void (*to_resume) (struct target_ops *, ptid_t, int step,
Pedro> enum gdb_signal)
Pedro> TARGET_DEBUG_PRINT (step, print_target_resume_step)
Pedro> TARGET_DEFAULT_NORETURN (noprocess ());
Syntactically I think I prefer the attributes next to the parameters;
though perhaps this other approach can be used to solve the
debug_print_register problem.
I'll go a bit deeper.
Tom