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] Set to_stopped_data_address field in procfs.c


>>>>> "Pierre" == Pierre Muller <muller@ics.u-strasbg.fr> writes:

Pierre> I put proc_watchpoint_address as a global function
Pierre> because the two before proc_why and proc_what 
Pierre> also are... even if they don't seem to be used
Pierre> anywhere else in gdb.

I think it is preferable to make functions static when possible --
don't emulate a bad example :-).  In this case, I think you should
also make proc_why and proc_what static as well.

I'm afraid I can't comment on the real logic of the patch, just this
stylistic nit.

Tom


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