Message ID | 20221216112206.3171578-2-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | split user and system code in gdbstub | expand |
On 12/16/22 03:21, Alex Bennée wrote: > Use something more specific to avoid name clashes. > > Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~ > --- > gdbstub/internals.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/gdbstub/internals.h b/gdbstub/internals.h > index eabb0341d1..b444f24ef5 100644 > --- a/gdbstub/internals.h > +++ b/gdbstub/internals.h > @@ -6,12 +6,12 @@ > * SPDX-License-Identifier: GPL-2.0-or-later > */ > > -#ifndef _INTERNALS_H_ > -#define _INTERNALS_H_ > +#ifndef GDBSTUB_INTERNALS_H > +#define GDBSTUB_INTERNALS_H > > bool gdb_supports_guest_debug(void); > int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len); > int gdb_breakpoint_remove(CPUState *cs, int type, hwaddr addr, hwaddr len); > void gdb_breakpoint_remove_all(CPUState *cs); > > -#endif /* _INTERNALS_H_ */ > +#endif /* GDBSTUB_INTERNALS_H */
diff --git a/gdbstub/internals.h b/gdbstub/internals.h index eabb0341d1..b444f24ef5 100644 --- a/gdbstub/internals.h +++ b/gdbstub/internals.h @@ -6,12 +6,12 @@ * SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef _INTERNALS_H_ -#define _INTERNALS_H_ +#ifndef GDBSTUB_INTERNALS_H +#define GDBSTUB_INTERNALS_H bool gdb_supports_guest_debug(void); int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len); int gdb_breakpoint_remove(CPUState *cs, int type, hwaddr addr, hwaddr len); void gdb_breakpoint_remove_all(CPUState *cs); -#endif /* _INTERNALS_H_ */ +#endif /* GDBSTUB_INTERNALS_H */
Use something more specific to avoid name clashes. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> --- gdbstub/internals.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)