rev: v2.4.2
hooks:
- id: codespell
- files: '^(gdbsupport|gdbserver|gdb/(features|nat|contrib|dwarf2|tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|debuginfod|gdb|go|guile|mi|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/'
+ files: '^(gdbsupport|gdbserver|gdb/(stubs|features|nat|contrib|dwarf2|tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|debuginfod|gdb|go|guile|mi|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/'
args: [--toml, gdb/pyproject.toml]
- id: codespell
name: codespell-log
Synopsys
aranges
fpr
+parm
}
/*
- * This function does all command procesing for interfacing to gdb.
+ * This function does all command processing for interfacing to gdb.
*/
void
handle_exception (int exceptionVector)
/* Disp packets exchanged with gdb. */
DEBUG_FLAG_ENTRY("packets"),
#define trace_pkt (debug_flags[0].val)
- /* Display entry point informations. */
+ /* Display entry point information. */
DEBUG_FLAG_ENTRY("entry"),
#define trace_entry (debug_flags[1].val)
/* Be verbose about exceptions. */
gdb_buf[gdb_blen++] = *str++;
}
-/* Extract a number fro the packet. */
+/* Extract a number from the packet. */
static unsigned __int64
pkt2val (const unsigned char *pkt, unsigned int *pos)
static int strlen (const unsigned char *);
/*
- * This function does all command procesing for interfacing to gdb.
+ * This function does all command processing for interfacing to gdb.
*/
void
/* Check the address for safe access ranges. As currently defined,
this routine will reject the "expansion bus" address range(s).
- To make those ranges useable, someone must implement code to detect
+ To make those ranges usable, someone must implement code to detect
whether there's anything connected to the expansion bus. */
static int
}
/*
- * This function does all command procesing for interfacing to gdb.
+ * This function does all command processing for interfacing to gdb.
*/
void
handle_exception (int exceptionVector)
printf ("frame at 0x%x has pc=0x%x, except#=%d\n",
frame, frame->exceptionPC,
frame->exceptionVector);
- /* re-use the last frame, we're skipping it (longjump?) */
+ /* reuse the last frame, we're skipping it (longjump?) */
frame = (Frame *) 0;
_returnFromException (frame); /* this is a jump */
}
{
int i;
- /* Clear TE and RE in Channel 1's SCR */
+ /* Clear TE and RE in Channel 1's SCR. codespell:ignore. */
SCR1 &= ~(SCI_TE | SCI_RE);
/* Set communication to be async, 8-bit data, no parity, 1 stop bit and use internal clock */
}
/*
- * This function does all command procesing for interfacing to gdb. It
+ * This function does all command processing for interfacing to gdb. It
* returns 1 if you should skip the instruction at the trap address, 0
* otherwise.
*/
3. Implement getDebugChar() and putDebugChar(), functions must not return
until data received or sent.
4. Implement all optional functions used to toggle breakpoints/watchpoints,
- if supported. Do not write fuctions to toggle software breakpoints if
+ if supported. Do not write functions to toggle software breakpoints if
you unsure (GDB will do itself).
5. Implement serial port initialization routine called at program start.
6. Add necessary debugger entry points to your program, for example:
//#define DBG_SWBREAK_RST 0x08
/* if platform supports hardware breakpoints then define following macro
- by name of function. Fuction must have next prototype:
+ by name of function. Function must have next prototype:
int toggle_hwbreak(int set, void *addr);
function must return 0 on success. */
//#define DBG_HWBREAK toggle_hwbreak
/* if platform supports hardware watchpoints then define all or some of
- following macros by names of functions. Fuctions prototypes:
+ following macros by names of functions. Functions prototypes:
int toggle_watch(int set, void *addr, size_t size); // memory write watch
int toggle_rwatch(int set, void *addr, size_t size); // memory read watch
int toggle_awatch(int set, void *addr, size_t size); // memory access watch
static char
low_hex (byte v) FASTCALL
{
-/*
+/* codespell:ignore-begin
__asm
ld a, l
and a, #0x0f
daa
ld l, a
__endasm;
+ codespell:ignore-end
(void)v;
*/
v &= 0x0f;