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: Save the length of inserted breakpoints


> Date: Fri, 14 Apr 2006 00:13:40 +0200 (CEST)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: gdb-patches@sourceware.org
> 
> > FWIW, I agree with Daniel: it is better to pass a struct than its
> > individual members, especially if we expect different targets to use
> > different members of that struct.  In other words, passing a struct
> > eases future maintenance pains.
> 
> And it obfuscates the interface.

I can't believe you really think that passing a struct instead of its
several members obfuscates the interface in any significant way; GDB's
code is replete with instances of passing a struct of which the caller
uses only a small part.

I understand that you want to make a point, but let's not exaggerate
our arguments to such a ridiculous degree.


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