diff options
Diffstat (limited to 'gdb')
| -rw-r--r-- | gdb/alpha-netbsd-tdep.c | 2 | ||||
| -rw-r--r-- | gdb/arch/aarch64-mte-linux.c | 1 | ||||
| -rw-r--r-- | gdb/c-varobj.c | 8 | ||||
| -rw-r--r-- | gdb/cli/cli-utils.c | 1 | ||||
| -rwxr-xr-x | gdb/contrib/check-whitespace-pre-commit.py | 5 | ||||
| -rw-r--r-- | gdb/d-namespace.c | 1 | ||||
| -rw-r--r-- | gdb/darwin-nat-info.c | 2 | ||||
| -rw-r--r-- | gdb/jit.c | 2 | ||||
| -rw-r--r-- | gdb/linux-tdep.c | 2 | ||||
| -rw-r--r-- | gdb/m68hc11-tdep.c | 1 | ||||
| -rw-r--r-- | gdb/mdebugread.c | 4 | ||||
| -rw-r--r-- | gdb/mi/mi-cmd-break.c | 1 | ||||
| -rw-r--r-- | gdb/mi/mi-cmd-catch.c | 1 | ||||
| -rw-r--r-- | gdb/mi/mi-cmd-target.c | 1 | ||||
| -rw-r--r-- | gdb/mn10300-linux-tdep.c | 1 | ||||
| -rw-r--r-- | gdb/mn10300-tdep.c | 1 | ||||
| -rw-r--r-- | gdb/ppc-sysv-tdep.c | 2 | ||||
| -rw-r--r-- | gdb/rs6000-aix-tdep.c | 1 | ||||
| -rw-r--r-- | gdb/rs6000-lynx178-tdep.c | 1 | ||||
| -rw-r--r-- | gdb/split-name.c | 1 | ||||
| -rw-r--r-- | gdb/target-float.c | 1 | ||||
| -rw-r--r-- | gdb/unittests/child-path-selftests.c | 1 | ||||
| -rw-r--r-- | gdb/unittests/mkdir-recursive-selftests.c | 1 |
23 files changed, 15 insertions, 27 deletions
diff --git a/gdb/alpha-netbsd-tdep.c b/gdb/alpha-netbsd-tdep.c index 2122ddf..f885f3f 100644 --- a/gdb/alpha-netbsd-tdep.c +++ b/gdb/alpha-netbsd-tdep.c @@ -227,7 +227,7 @@ alphanbsd_sigtramp_offset (struct gdbarch *gdbarch, CORE_ADDR pc) static int alphanbsd_pc_in_sigtramp (struct gdbarch *gdbarch, - CORE_ADDR pc, const char *func_name) + CORE_ADDR pc, const char *func_name) { return (nbsd_pc_in_sigtramp (pc, func_name) || alphanbsd_sigtramp_offset (gdbarch, pc) >= 0); diff --git a/gdb/arch/aarch64-mte-linux.c b/gdb/arch/aarch64-mte-linux.c index 9f433b0..9a27eb6 100644 --- a/gdb/arch/aarch64-mte-linux.c +++ b/gdb/arch/aarch64-mte-linux.c @@ -74,4 +74,3 @@ aarch64_mte_unpack_tags (gdb::byte_vector &tags, bool skip_first) /* Update the original tags vector. */ tags = std::move (unpacked_tags); } - diff --git a/gdb/c-varobj.c b/gdb/c-varobj.c index 447a19f..41875c5 100644 --- a/gdb/c-varobj.c +++ b/gdb/c-varobj.c @@ -831,11 +831,11 @@ cplus_describe_child (const struct varobj *parent, int index, { case 0: if (children[v_public] > 0) - access = "public"; + access = "public"; else if (children[v_private] > 0) - access = "private"; + access = "private"; else - access = "protected"; + access = "protected"; break; case 1: if (children[v_public] > 0) @@ -846,7 +846,7 @@ cplus_describe_child (const struct varobj *parent, int index, access = "protected"; } else if (children[v_private] > 0) - access = "protected"; + access = "protected"; break; case 2: /* Must be protected. */ diff --git a/gdb/cli/cli-utils.c b/gdb/cli/cli-utils.c index 8396f74..3d0034e 100644 --- a/gdb/cli/cli-utils.c +++ b/gdb/cli/cli-utils.c @@ -436,4 +436,3 @@ validate_flags_qcs (const char *which_command, qcs_flags *flags) if (flags->cont && flags->silent) error (_("%s: -c and -s are mutually exclusive"), which_command); } - diff --git a/gdb/contrib/check-whitespace-pre-commit.py b/gdb/contrib/check-whitespace-pre-commit.py index 3045b3e..f084a08 100755 --- a/gdb/contrib/check-whitespace-pre-commit.py +++ b/gdb/contrib/check-whitespace-pre-commit.py @@ -18,12 +18,15 @@ import re import subprocess import sys -re_clean = re.compile("(^(gdb/testsuite/|gdbsupport/|gdbserver/)|[.](m4|ac|h)$)") +re_clean = re.compile("(^(gdb/testsuite/|gdbsupport/|gdbserver/)|[.](m4|ac|[ch])$)") +re_clean_exclude = re.compile("^(gdb/symfile.c|gdb/cli/cli-cmds.c)$") clean = [] other = [] for f in sys.argv[1:]: m = re_clean.search(f) + if m and re_clean_exclude.search(f): + m = None if m: clean.append(f) else: diff --git a/gdb/d-namespace.c b/gdb/d-namespace.c index b5e046e..3fa2896 100644 --- a/gdb/d-namespace.c +++ b/gdb/d-namespace.c @@ -516,4 +516,3 @@ d_lookup_symbol_nonlocal (const struct language_defn *langdef, return d_lookup_symbol_module (scope, name, block, domain); } - diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c index 38ace30..f4a9614 100644 --- a/gdb/darwin-nat-info.c +++ b/gdb/darwin-nat-info.c @@ -549,7 +549,7 @@ darwin_debug_regions (task_t task, mach_vm_address_t address, int max) count = VM_REGION_BASIC_INFO_COUNT_64; kret = mach_vm_region (task, &address, &size, VM_REGION_BASIC_INFO_64, - (vm_region_info_t) &info, &count, &object_name); + (vm_region_info_t) &info, &count, &object_name); if (kret != KERN_SUCCESS) { size = 0; @@ -553,7 +553,7 @@ finalize_symtab (struct gdb_symtab *stab, struct objfile *objfile) } auto bv = std::make_unique<blockvector> (actual_nblocks); - + /* At the end of this function, (begin, end) will contain the PC range this entire blockvector spans. */ begin = stab->blocks.front ().begin; diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 1084361..8fadc75 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -291,7 +291,7 @@ linux_get_siginfo_type_with_fields (struct gdbarch *gdbarch, type_allocator alloc (gdbarch); int_type = init_integer_type (alloc, gdbarch_int_bit (gdbarch), - 0, "int"); + 0, "int"); uint_type = init_integer_type (alloc, gdbarch_int_bit (gdbarch), 1, "unsigned int"); long_type = init_integer_type (alloc, gdbarch_long_bit (gdbarch), diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c index 55b26f9..2aa2cd8 100644 --- a/gdb/m68hc11-tdep.c +++ b/gdb/m68hc11-tdep.c @@ -1532,4 +1532,3 @@ INIT_GDB_FILE (m68hc11_tdep) gdbarch_register (bfd_arch_m68hc12, m68hc11_gdbarch_init); m68hc11_init_reggroups (); } - diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index e7c526a..f5949e61 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -109,8 +109,8 @@ struct md_symloc #define SC_IS_TEXT(sc) ((sc) == scText \ || (sc) == scRConst \ - || (sc) == scInit \ - || (sc) == scFini) + || (sc) == scInit \ + || (sc) == scFini) #define SC_IS_DATA(sc) ((sc) == scData \ || (sc) == scSData \ || (sc) == scRData \ diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c index 2c9295d..742b1cb 100644 --- a/gdb/mi/mi-cmd-break.c +++ b/gdb/mi/mi-cmd-break.c @@ -594,4 +594,3 @@ mi_cmd_break_commands (const char *command, const char *const *argv, int argc) breakpoint_set_commands (b, std::move (break_command)); } - diff --git a/gdb/mi/mi-cmd-catch.c b/gdb/mi/mi-cmd-catch.c index 8c0d230..00beff7 100644 --- a/gdb/mi/mi-cmd-catch.c +++ b/gdb/mi/mi-cmd-catch.c @@ -358,4 +358,3 @@ mi_cmd_catch_catch (const char *cmd, const char *const *argv, int argc) { mi_cmd_catch_exception_event (EX_EVENT_CATCH, cmd, argv, argc); } - diff --git a/gdb/mi/mi-cmd-target.c b/gdb/mi/mi-cmd-target.c index 22bc43e..c3de8a9 100644 --- a/gdb/mi/mi-cmd-target.c +++ b/gdb/mi/mi-cmd-target.c @@ -91,4 +91,3 @@ mi_cmd_target_file_delete (const char *command, const char *const *argv, remote_file_delete (remote_file, 0); } - diff --git a/gdb/mn10300-linux-tdep.c b/gdb/mn10300-linux-tdep.c index e672ad3..64c1544 100644 --- a/gdb/mn10300-linux-tdep.c +++ b/gdb/mn10300-linux-tdep.c @@ -719,4 +719,3 @@ INIT_GDB_FILE (mn10300_linux_tdep) gdbarch_register_osabi (bfd_arch_mn10300, 0, GDB_OSABI_LINUX, am33_linux_init_osabi); } - diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index e6e7f3d..f0167d9 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -1417,4 +1417,3 @@ INIT_GDB_FILE (mn10300_tdep) { gdbarch_register (bfd_arch_mn10300, mn10300_gdbarch_init, mn10300_dump_tdep); } - diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c index cc300cd..3f20cf3 100644 --- a/gdb/ppc-sysv-tdep.c +++ b/gdb/ppc-sysv-tdep.c @@ -1705,7 +1705,7 @@ ppc64_sysv_abi_push_dummy_call (struct gdbarch *gdbarch, ppc64_sysv_abi_push_param (gdbarch, eltype, val, &argpos); ppc64_sysv_abi_push_param (gdbarch, eltype, - val + eltype->length (), &argpos); + val + eltype->length (), &argpos); } else if (type->code () == TYPE_CODE_ARRAY && type->is_vector () && opencl_abi) diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c index 366235f..feca5b0 100644 --- a/gdb/rs6000-aix-tdep.c +++ b/gdb/rs6000-aix-tdep.c @@ -1428,4 +1428,3 @@ INIT_GDB_FILE (rs6000_aix_tdep) gdbarch_register_osabi (bfd_arch_powerpc, 0, GDB_OSABI_AIX, rs6000_aix_init_osabi); } - diff --git a/gdb/rs6000-lynx178-tdep.c b/gdb/rs6000-lynx178-tdep.c index d0d9a53..6e7b3db 100644 --- a/gdb/rs6000-lynx178-tdep.c +++ b/gdb/rs6000-lynx178-tdep.c @@ -415,4 +415,3 @@ INIT_GDB_FILE (rs6000_lynx178_tdep) gdbarch_register_osabi (bfd_arch_rs6000, 0, GDB_OSABI_LYNXOS178, rs6000_lynx178_init_osabi); } - diff --git a/gdb/split-name.c b/gdb/split-name.c index dc09dec..236caa3 100644 --- a/gdb/split-name.c +++ b/gdb/split-name.c @@ -64,4 +64,3 @@ split_name (const char *name, split_style style) result.emplace_back (&name[previous_len]); return result; } - diff --git a/gdb/target-float.c b/gdb/target-float.c index 9b0376f..dddf5d1 100644 --- a/gdb/target-float.c +++ b/gdb/target-float.c @@ -2491,4 +2491,3 @@ target_float_compare (const gdb_byte *x, const struct type *type_x, const target_float_ops *ops = get_target_float_ops (type_x, type_y); return ops->compare (x, type_x, y, type_y); } - diff --git a/gdb/unittests/child-path-selftests.c b/gdb/unittests/child-path-selftests.c index 95b2c34..5c435f1 100644 --- a/gdb/unittests/child-path-selftests.c +++ b/gdb/unittests/child-path-selftests.c @@ -63,4 +63,3 @@ INIT_GDB_FILE (child_path_selftests) selftests::register_test ("child_path", selftests::child_path::test); } - diff --git a/gdb/unittests/mkdir-recursive-selftests.c b/gdb/unittests/mkdir-recursive-selftests.c index b2ae383..e2f577a 100644 --- a/gdb/unittests/mkdir-recursive-selftests.c +++ b/gdb/unittests/mkdir-recursive-selftests.c @@ -85,4 +85,3 @@ INIT_GDB_FILE (mkdir_recursive_selftests) selftests::register_test ("mkdir_recursive", selftests::mkdir_recursive::test); } - |
