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: [RFA] Remove unecessary checks for macros in target.h


> 2009-05-08  Pierre Muller  <muller.u-strasbg.fr>
> 
> 	* src/gdb/target.h: Remove all tests for already defined
> 	macros. All macros defined here should not be set in config
> 	headers anymore.

Looks good to me. Can you also remove the following comment that
now becomes obsolete?

    /* If the *_hw_beakpoint functions have not been defined
       elsewhere use the definitions in the target vector.  */

As a followup patch, I'd go one step further and rename the macros
that do not follow the general naming scheme in that file.
For instance: STOPPED_BY_WATCHPOINT -> target_stopped_by_watchpoint.

> PS: STOPPED_BY_WATCHPOINT macro could probably also loose its unused
> parameter...  Would this later patch be also welcome?

Sure. That could be taken care of as part of the renaming above.

-- 
Joel


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