This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] auto-generate most target debug methods


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]