This is the mail archive of the 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 00/32] clean up target delegation

>>>>> "Pedro" == Pedro Alves <> writes:

Pedro> For a couple, I think the simplest yet would be to change their
Pedro> respective macros/functions to return the field in the topmost target:

I started implementing the easy bits but then I realized that the debug
target puts a wrinkle into this.  For instance, inheriting to_shortname
is needed when target debug is active.

We discussed before that it would be nice to get rid of the debug target.
That's a reasonable amount of typing, though ... there's ~80 target
functions that are just #defines in target.h.  It sure would be nice to
automate this as well, but I didn't really see a reasonable way.

It looks like a second round of target cleanups will be needed.

Pedro> Actually, it seems to be that most, if not all, hacks^W uses
Pedro> of target_shortname are wrong, in that they want to know the
Pedro> name of the process_stratum target, not the topmost target.

Wow, I had no idea about this.  What hacks!
I filed a bug:


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