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]

New ARI warning Sat Jan 6 02:11:13 UTC 2018 in gdb-8.1-branch


7a8,9
> gdb/ada-lang.c:11689: code: long long: Do not use 'long long', instead use LONGEST
gdb/ada-lang.c:11689:  long long num, den;
> gdb/ada-lang.c:11707: code: long long: Do not use 'long long', instead use LONGEST
gdb/ada-lang.c:11707:  long long num0, den0, num1, den1;
30a33
> gdb/arm-fbsd-tdep.h:40: code: function call in first column: Function name in first column should be restricted to function implementation
gdb/arm-fbsd-tdep.h:40:arm_fbsd_read_description_auxv (struct target_ops *target);
88a92,93
> gdb/common/common-utils.c:186: regression: vsprintf: Do not use vsprintf(), instead use xstrvprintf
gdb/common/common-utils.c:186:  vsprintf (&str[0], fmt, args);
> gdb/common/common-utils.c:222: regression: vsprintf: Do not use vsprintf(), instead use xstrvprintf
gdb/common/common-utils.c:222:  vsprintf (&str[curr_size], fmt, args);
107d111
< gdb/core-regset.c:120: deprecated: deprecated add_core_fns: Do not use deprecated add_core_fns, see declaration for details
gdb/core-regset.c:120:  deprecated_add_core_fns (&regset_core_fns);
114d117
< gdb/cp-valprint.c:377: code: OP eol: Do not use &&, or || at the end of a line
gdb/cp-valprint.c:377:		(char *) obstack_next_free (&dont_print_statmem_obstack) -
321,322d323
< gdb/mi/mi-main.c:1648: code: sprintf: Do not use sprintf, instead use xsnprintf or xstrprintf
gdb/mi/mi-main.c:1648:	  sprintf (p, ', read_result->data[i]);
< gdb/mi/mi-main.c:2958: code: sprintf: Do not use sprintf, instead use xsnprintf or xstrprintf
gdb/mi/mi-main.c:2958:		  sprintf (p, ', data[m]);
333d333
< gdb/mips-tdep.c:6535: deprecated: deprecated frame_register_read: Do not use deprecated frame_register_read, see declaration for details
gdb/mips-tdep.c:6535:      if (!deprecated_frame_register_read (frame, regnum, raw_buffer))
345a346,349
> gdb/nat/fork-inferior.c:442: gettext: _ markup: All messages should be marked up with _.
gdb/nat/fork-inferior.c:442:      warning ("Cannot exec %s", argv[0]);
> gdb/nat/fork-inferior.c:445: gettext: _ markup: All messages should be marked up with _.
gdb/nat/fork-inferior.c:445:	warning (" %s", argv[i]);
> gdb/nat/fork-inferior.c:447: gettext: _ markup: All messages should be marked up with _.
gdb/nat/fork-inferior.c:447:      warning ("Error: %s\n", safe_strerror (save_errno));
> gdb/nat/fork-inferior.c:602: gettext: _ markup: All messages should be marked up with _.
gdb/nat/fork-inferior.c:602:  warning ("Could not trace the inferior process.\nError: ");
406,409d409
< gdb/procfs.c:658: code: if assignment: An IF statement's expression contains an assignment (the GNU coding standard discourages this)
gdb/procfs.c:658:      if ((process = find_procinfo (pi->pid, 0)) == NULL)
< gdb/procfs.c:662: code: if assignment: An IF statement's expression contains an assignment (the GNU coding standard discourages this)
gdb/procfs.c:662:      if ((fd = ioctl (process->ctl_fd, PIOCOPENLWP, &lwpid)) < 0)
< gdb/procfs.c:684: code: if assignment: An IF statement's expression contains an assignment (the GNU coding standard discourages this)
gdb/procfs.c:684:  if ((pi = find_procinfo (pid, tid)))
< gdb/procfs.c:708: code: sprintf: Do not use sprintf, instead use xsnprintf or xstrprintf
gdb/procfs.c:708:      sprintf (pi->pathname, MAIN_PROC_NAME_FMT, pid);
415,416d414
< gdb/procfs.c:1032: code: sprintf: Do not use sprintf, instead use xsnprintf or xstrprintf
gdb/procfs.c:1032:  sprintf (errmsg, ', func, line, pi->pathname);
< gdb/procfs.c:1046: code: OP eol: Do not use &&, or || at the end of a line
gdb/procfs.c:1046:  if (pi->status_fd == 0 &&
434,435d431
< gdb/procfs.c:2889: code: if assignment: An IF statement's expression contains an assignment (the GNU coding standard discourages this)
gdb/procfs.c:2889:      if ((retval = (*func) (pi, thread, ptr)) != 0)
< gdb/procfs.c:3095: code: if assignment: An IF statement's expression contains an assignment (the GNU coding standard discourages this)
gdb/procfs.c:3095:  if ((pi = create_procinfo (ptid_get_pid (ptid), 0)) == NULL)
439d434
< gdb/procfs.c:3482: code: sprintf: Do not use sprintf, instead use xsnprintf or xstrprintf
gdb/procfs.c:3482:      sprintf (name, ', pi->pid, map->pr_mapname);
473d467
< gdb/reggroups.c:113: deprecated: deprecated set_gdbarch_data: Do not use deprecated set_gdbarch_data, see declaration for details
gdb/reggroups.c:113:      deprecated_set_gdbarch_data (gdbarch, reggroups_data, groups);
599a594
> gdb/target-float.c:651: regression: floatformat_to_double: Do not use floatformat_to_double() from libierty, instead use floatformat_to_doublest()
gdb/target-float.c:651:      floatformat_to_double (fmt->split_half ? fmt->split_half : fmt,
669a665,672
> gdb/unittests/environ-selftests.c:94: code: editCase function: Function name starts lower case but has uppercased letters.
gdb/unittests/environ-selftests.c:94:test_set_A_unset_B_unset_A_cannot_find_A_can_find_B ()
> gdb/unittests/memory-map-selftests.c:31: regression: multi-line string: Multi-line string must have the newline escaped
gdb/unittests/memory-map-selftests.c:31:static const char *valid_mem_map = R'1.0"?>
> gdb/unittests/memory-map-selftests.c:33: regression: multi-line string: Multi-line string must have the newline escaped
gdb/unittests/memory-map-selftests.c:33:'+//IDN gnu.org//DTD GDB Memory Map V1.0//EN"
> gdb/unittests/memory-map-selftests.c:34: regression: multi-line string: Multi-line string must have the newline escaped
gdb/unittests/memory-map-selftests.c:34:'http://sourceware.org/gdb/gdb-memory-map.dtd";>
> gdb/unittests/memory-map-selftests.c:36: regression: multi-line string: Multi-line string must have the newline escaped
gdb/unittests/memory-map-selftests.c:36:'ram'0'4096" />
> gdb/unittests/memory-map-selftests.c:37: regression: multi-line string: Multi-line string must have the newline escaped
gdb/unittests/memory-map-selftests.c:37:'rom'65536'256" />
> gdb/unittests/memory-map-selftests.c:38: regression: multi-line string: Multi-line string must have the newline escaped
gdb/unittests/memory-map-selftests.c:38:'flash'131072'65536">
> gdb/unittests/memory-map-selftests.c:39: regression: multi-line string: Multi-line string must have the newline escaped
gdb/unittests/memory-map-selftests.c:39:'blocksize">1024</property>
746a750
> gdb/xcoffread.c:2968: code: OP eol: Do not use &&, or || at the end of a line
gdb/xcoffread.c:2968:  stringtab_offset = symtab_offset +


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