Remove old GNU indent directives

Now that gdb_indent.sh has been removed, I think it makes sense to
also remove the directives intended for GNU indent.
This commit is contained in:
Tom Tromey 2023-02-08 11:26:24 -07:00
parent 935d48567d
commit 810fbe39b2
15 changed files with 6 additions and 29 deletions

View file

@ -1,4 +1,4 @@
/* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
/* vi:set ro: */ /* vi:set ro: */
/* UTF-32 case-folding for GDB /* UTF-32 case-folding for GDB

View file

@ -31,7 +31,6 @@
/* FIXME: Some of this code should perhaps be merged with mips. */ /* FIXME: Some of this code should perhaps be merged with mips. */
/* *INDENT-OFF* */
/* Layout of a stack frame on the alpha: /* Layout of a stack frame on the alpha:
| | | |
@ -74,7 +73,6 @@
-------------|-------------------------------|<-- sp -------------|-------------------------------|<-- sp
| | | |
*/ */
/* *INDENT-ON* */
#define PROC_LOW_ADDR(proc) ((proc)->pdr.adr) #define PROC_LOW_ADDR(proc) ((proc)->pdr.adr)
#define PROC_FRAME_OFFSET(proc) ((proc)->pdr.frameoffset) #define PROC_FRAME_OFFSET(proc) ((proc)->pdr.frameoffset)

View file

@ -1846,7 +1846,6 @@ arm_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
target_arm_instruction_reader ()); target_arm_instruction_reader ());
} }
/* *INDENT-OFF* */
/* Function: thumb_scan_prologue (helper function for arm_scan_prologue) /* Function: thumb_scan_prologue (helper function for arm_scan_prologue)
This function decodes a Thumb function prologue to determine: This function decodes a Thumb function prologue to determine:
1) the size of the stack frame 1) the size of the stack frame
@ -1866,7 +1865,6 @@ arm_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
The comments for thumb_skip_prolog() describe the algorithm we use The comments for thumb_skip_prolog() describe the algorithm we use
to detect the end of the prolog. */ to detect the end of the prolog. */
/* *INDENT-ON* */
static void static void
thumb_scan_prologue (struct gdbarch *gdbarch, CORE_ADDR prev_pc, thumb_scan_prologue (struct gdbarch *gdbarch, CORE_ADDR prev_pc,

View file

@ -1,5 +1,3 @@
/* *INDENT-OFF* */ /* ATTRIBUTE_PRINTF confuses indent, avoid running it
for now. */
/* Basic, host-specific, and target-specific definitions for GDB. /* Basic, host-specific, and target-specific definitions for GDB.
Copyright (C) 1986-2023 Free Software Foundation, Inc. Copyright (C) 1986-2023 Free Software Foundation, Inc.

View file

@ -1,4 +1,4 @@
/* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
/* vi:set ro: */ /* vi:set ro: */
/* Dynamic architecture support for GDB, the GNU debugger. /* Dynamic architecture support for GDB, the GNU debugger.

View file

@ -1,4 +1,4 @@
/* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
/* vi:set ro: */ /* vi:set ro: */
/* Dynamic architecture support for GDB, the GNU debugger. /* Dynamic architecture support for GDB, the GNU debugger.

View file

@ -25,7 +25,7 @@ def copyright(tool, description):
if line.startswith("# Copyright (C) "): if line.startswith("# Copyright (C) "):
dateline = line[1:].strip() dateline = line[1:].strip()
break break
return f"""/* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */ return f"""/* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
/* vi:set ro: */ /* vi:set ro: */
/* {description} /* {description}

View file

@ -154,7 +154,6 @@ static void load_npx (void); /* Restore the FPU of the debugged program. */
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
/* Store the contents of the NPX in the global variable `npx'. */ /* Store the contents of the NPX in the global variable `npx'. */
/* *INDENT-OFF* */
static void static void
save_npx (void) save_npx (void)
@ -175,7 +174,6 @@ save_npx (void)
: "%eax"); : "%eax");
} }
/* *INDENT-ON* */
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */

View file

@ -852,7 +852,6 @@ static const struct tramp_frame micromips_linux_n64_rt_sigframe = {
micromips_linux_sigframe_validate micromips_linux_sigframe_validate
}; };
/* *INDENT-OFF* */
/* The unwinder for o32 signal frames. The legacy structures look /* The unwinder for o32 signal frames. The legacy structures look
like this: like this:
@ -927,7 +926,6 @@ static const struct tramp_frame micromips_linux_n64_rt_sigframe = {
struct sigcontext uc_mcontext; struct sigcontext uc_mcontext;
sigset_t uc_sigmask; sigset_t uc_sigmask;
}; */ }; */
/* *INDENT-ON* */
#define SIGFRAME_SIGCONTEXT_OFFSET (6 * 4) #define SIGFRAME_SIGCONTEXT_OFFSET (6 * 4)
@ -1066,7 +1064,6 @@ mips_linux_o32_sigframe_init (const struct tramp_frame *self,
trad_frame_set_id (this_cache, frame_id_build (frame_sp, func)); trad_frame_set_id (this_cache, frame_id_build (frame_sp, func));
} }
/* *INDENT-OFF* */
/* For N32/N64 things look different. There is no non-rt signal frame. /* For N32/N64 things look different. There is no non-rt signal frame.
struct rt_sigframe_n32 { struct rt_sigframe_n32 {
@ -1122,7 +1119,6 @@ mips_linux_o32_sigframe_init (const struct tramp_frame *self,
That is the post-2.6.12 definition of the 64-bit sigcontext; before That is the post-2.6.12 definition of the 64-bit sigcontext; before
then, there were no hi1-hi3 or lo1-lo3. Cause and badvaddr were then, there were no hi1-hi3 or lo1-lo3. Cause and badvaddr were
included too. */ included too. */
/* *INDENT-ON* */
#define N32_STACK_T_SIZE STACK_T_SIZE #define N32_STACK_T_SIZE STACK_T_SIZE
#define N64_STACK_T_SIZE (2 * 8 + 4) #define N64_STACK_T_SIZE (2 * 8 + 4)

View file

@ -178,7 +178,6 @@ struct ppc_hw_breakpoint
The layout is like this (where x is the actual value of the vscr reg): */ The layout is like this (where x is the actual value of the vscr reg): */
/* *INDENT-OFF* */
/* /*
Big-Endian: Big-Endian:
|.|.|.|.|.....|.|.|.|.||.|.|.|x||.| |.|.|.|.|.....|.|.|.|.||.|.|.|x||.|
@ -189,7 +188,6 @@ Little-Endian:
<-------> <-------><-------><-> <-------> <-------><-------><->
VR0 VR31 VSCR VRSAVE VR0 VR31 VSCR VRSAVE
*/ */
/* *INDENT-ON* */
typedef char gdb_vrregset_t[PPC_LINUX_SIZEOF_VRREGSET]; typedef char gdb_vrregset_t[PPC_LINUX_SIZEOF_VRREGSET];
@ -628,7 +626,6 @@ private:
static ppc_linux_nat_target the_ppc_linux_nat_target; static ppc_linux_nat_target the_ppc_linux_nat_target;
/* *INDENT-OFF* */
/* registers layout, as presented by the ptrace interface: /* registers layout, as presented by the ptrace interface:
PT_R0, PT_R1, PT_R2, PT_R3, PT_R4, PT_R5, PT_R6, PT_R7, PT_R0, PT_R1, PT_R2, PT_R3, PT_R4, PT_R5, PT_R6, PT_R7,
PT_R8, PT_R9, PT_R10, PT_R11, PT_R12, PT_R13, PT_R14, PT_R15, PT_R8, PT_R9, PT_R10, PT_R11, PT_R12, PT_R13, PT_R14, PT_R15,
@ -643,7 +640,6 @@ PT_FPR0 + 40, PT_FPR0 + 42, PT_FPR0 + 44, PT_FPR0 + 46,
PT_FPR0 + 48, PT_FPR0 + 50, PT_FPR0 + 52, PT_FPR0 + 54, PT_FPR0 + 48, PT_FPR0 + 50, PT_FPR0 + 52, PT_FPR0 + 54,
PT_FPR0 + 56, PT_FPR0 + 58, PT_FPR0 + 60, PT_FPR0 + 62, PT_FPR0 + 56, PT_FPR0 + 58, PT_FPR0 + 60, PT_FPR0 + 62,
PT_NIP, PT_MSR, PT_CCR, PT_LNK, PT_CTR, PT_XER, PT_MQ */ PT_NIP, PT_MSR, PT_CCR, PT_LNK, PT_CTR, PT_XER, PT_MQ */
/* *INDENT_ON * */
static int static int
ppc_register_u_addr (struct gdbarch *gdbarch, int regno) ppc_register_u_addr (struct gdbarch *gdbarch, int regno)

View file

@ -1633,7 +1633,6 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc,
address at runtime, can appear to save more than one link address at runtime, can appear to save more than one link
register vis: register vis:
*INDENT-OFF*
stwu r1,-304(r1) stwu r1,-304(r1)
mflr r3 mflr r3
bl 0xff570d0 (blrl) bl 0xff570d0 (blrl)
@ -1642,7 +1641,6 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc,
stw r31,300(r1) stw r31,300(r1)
stw r3,308(r1); stw r3,308(r1);
... ...
*INDENT-ON*
remember just the first one, but skip over additional remember just the first one, but skip over additional
ones. */ ones. */

View file

@ -2992,7 +2992,6 @@ read_struct_fields (struct stab_field_info *fip, const char **pp,
} }
return 1; return 1;
} }
/* *INDENT-OFF* */
/* The stabs for C++ derived classes contain baseclass information which /* The stabs for C++ derived classes contain baseclass information which
is marked by a '!' character after the total size. This function is is marked by a '!' character after the total size. This function is
called when we encounter the baseclass marker, and slurps up all the called when we encounter the baseclass marker, and slurps up all the
@ -3016,7 +3015,6 @@ read_struct_fields (struct stab_field_info *fip, const char **pp,
Type number of base class ____________________________________| Type number of base class ____________________________________|
Return 1 for success, 0 for (error-type-inducing) failure. */ Return 1 for success, 0 for (error-type-inducing) failure. */
/* *INDENT-ON* */

View file

@ -1,4 +1,4 @@
/* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
/* vi:set ro: */ /* vi:set ro: */
/* Boilerplate target methods for GDB /* Boilerplate target methods for GDB

View file

@ -1,5 +1,3 @@
/* *INDENT-OFF* */ /* ATTRIBUTE_PRINTF confuses indent, avoid running it
for now. */
/* I/O, string, cleanup, and other random utilities for GDB. /* I/O, string, cleanup, and other random utilities for GDB.
Copyright (C) 1986-2023 Free Software Foundation, Inc. Copyright (C) 1986-2023 Free Software Foundation, Inc.

View file

@ -354,7 +354,7 @@ add_stab_to_list (char *stabname, struct pending_stabs **stabvector)
} }
#endif #endif
/* *INDENT-OFF* */
/* Linenos are processed on a file-by-file basis. /* Linenos are processed on a file-by-file basis.
Two reasons: Two reasons:
@ -406,7 +406,6 @@ add_stab_to_list (char *stabname, struct pending_stabs **stabvector)
on when we come the end of the compilation unit. on when we come the end of the compilation unit.
Include table (inclTable) and process_linenos() handle Include table (inclTable) and process_linenos() handle
that. */ that. */
/* *INDENT-ON* */
/* Given a line table with function entries are marked, arrange its /* Given a line table with function entries are marked, arrange its